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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
approveLoadingOfClassIsCorrect
(String className, ENUMCallerType callerType) Checks if the loading of the class is correct.boolean
checkIfClassIsAvailable
(String className) 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:
resolveClass
in interfaceIClassResolver
- Throws:
ClassNotFoundException
-
resolveClass
public Class resolveClass(String className, ENUMCallerType callerType) throws ClassNotFoundException - Specified by:
resolveClass
in interfaceIClassResolver
- Throws:
ClassNotFoundException
-
checkIfClassIsAvailable
- Specified by:
checkIfClassIsAvailable
in interfaceIClassResolver
-
approveLoadingOfClassIsCorrect
Checks if the loading of the class is correct. If not correct then an Error/Runtime exception is to be thrown.
-