com.vladium.util
Class ClassLoadContext

java.lang.Object
  extended bycom.vladium.util.ClassLoadContext

public class ClassLoadContext
extends java.lang.Object

Information context for IClassLoadStrategy.getClassLoader(ClassLoadContext).

Author:
Vlad Roubtsov, (C) 2003

Field Summary
private  java.lang.Class m_caller
           
 
Constructor Summary
(package private) ClassLoadContext(java.lang.Class caller)
          This constructor is package-private to restrict instantiation to ClassLoaderResolver only.
 
Method Summary
 java.lang.Class getCallerClass()
          Returns the class representing the caller of ClassLoaderResolver API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_caller

private final java.lang.Class m_caller
Constructor Detail

ClassLoadContext

ClassLoadContext(java.lang.Class caller)
This constructor is package-private to restrict instantiation to ClassLoaderResolver only.

Parameters:
caller - [can be null]
Method Detail

getCallerClass

public final java.lang.Class getCallerClass()
Returns the class representing the caller of ClassLoaderResolver API. Can be used to retrieve the caller's classloader etc (which may be different from the ClassLoaderResolver's own classloader) ['null' if caller resolver could be instantiated due to security restrictions].