Package org.eclnt.util.classresolver
Class DefaultClassResolver
java.lang.Object
org.eclnt.util.classresolver.DefaultClassResolver
- All Implemented Interfaces:
IClassResolver
Base Class that is used for secure class loading. All class loading is done through interface
IClassResolver for security reason.
-
Field Summary
Fields inherited from interface org.eclnt.util.classresolver.IClassResolver
COMMENT_resolveClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapproveLoadingOfClassIsCorrect(String className, ENUMCallerType callerType) Checks if the loading of the class is correct.booleancheckIfClassIsAvailable(String className) protected ClassexecuteBufferedClassForName(String className, boolean initialize, ClassLoader classLoader) resolveClass(String className, boolean initialize, ClassLoader classLoader, ENUMCallerType callerType) resolveClass(String className, ENUMCallerType callerType)
-
Constructor Details
-
DefaultClassResolver
public DefaultClassResolver()
-
-
Method Details
-
resolveClass
public Class resolveClass(String className, boolean initialize, ClassLoader classLoader, ENUMCallerType callerType) throws ClassNotFoundException - Specified by:
resolveClassin interfaceIClassResolver- Throws:
ClassNotFoundException
-
resolveClass
public Class resolveClass(String className, ENUMCallerType callerType) throws ClassNotFoundException - Specified by:
resolveClassin interfaceIClassResolver- Throws:
ClassNotFoundException
-
checkIfClassIsAvailable
- Specified by:
checkIfClassIsAvailablein interfaceIClassResolver
-
approveLoadingOfClassIsCorrect
Checks if the loading of the class is correct. If not correct then an Error/Runtime exception is to be thrown. -
executeBufferedClassForName
protected Class executeBufferedClassForName(String className, boolean initialize, ClassLoader classLoader) throws ClassNotFoundException - Throws:
ClassNotFoundException
-