|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.util.SafeToolkit
Field Summary | |
protected static HashMap |
_tempcodebases
|
protected static HashMap |
codebases
|
protected static Messages |
messages
|
Constructor Summary | |
protected |
SafeToolkit(String systemLocation)
Creates a new SafeToolkit dedicated to the specified system location. |
Method Summary | |
protected static File |
createTempCopy(String codebase)
|
Class |
forName(String className)
Attempts to find and load the specified class. |
Class |
forName(String className,
String codebase)
Attempts to find and load the specified class, using the specified codebase. |
protected static ClassLoader |
getClassLoader(String codebase)
Ensures that a class loader for each code base used in the system is created at most one time. |
protected static ClassLoader |
getCodebaseClassLoader(String codebase)
Ensures that a class loader for each code base used in the system is created at most one time. |
protected static ClassLoader |
getCodebaseTempClassLoader(String codebase)
Ensures that a class loader for each code base used in the system is created at most one time. |
static ClassLoader |
getContextClassLoader()
|
SafeProperties |
getSafeProperties(Properties props)
Returns a new SafeProperties instance dedicated to this toolkit. |
protected static ClassLoader |
getTempClassLoader(String codebase)
Ensures that a class loader for each code base used in the system is created at most one time. |
static SafeToolkit |
getToolkit(String systemLocation)
Returns an instance of a SafeToolkit dedicated to the specified system location. |
static Class |
loadClass(String className,
String codebase)
Loads the class using the class loader for the specific codebase. |
static Class |
loadClass(String className,
String codebase,
boolean cache)
|
static Class |
loadTempClass(String className,
String codebase)
Loads the class using the class loader for the specific codebase. |
static Class |
loadTempClass(String className,
String codebase,
boolean cache)
|
Object |
newInstance(Class clazz)
Attempts to instaniate the specified class. |
Object |
newInstance(String className)
Attempts to find and load the specified class then instaniate it. |
Object |
newInstance(String className,
String codebase)
Attempts to find and load the specified class then instaniate it. |
static void |
unloadTempCodebase(String codebase)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Messages messages
protected static HashMap codebases
protected static HashMap _tempcodebases
Constructor Detail |
protected SafeToolkit(String systemLocation)
Method Detail |
public static SafeToolkit getToolkit(String systemLocation)
public Class forName(String className) throws OpenEJBException
className
- the name of the class to be loaded.
OpenEJBExcption
- if the class cannot be found.
OpenEJBException
public Class forName(String className, String codebase) throws OpenEJBException
className
- the name of the class to be loaded.codebase
- the codebase to load the class from.
OpenEJBExcption
- if the class cannot be found.
OpenEJBException
public Object newInstance(String className) throws OpenEJBException
className
- the name of the class to be instantiated.
OpenEJBException
- if the class cannot be found or is not accessible .public Object newInstance(String className, String codebase) throws OpenEJBException
className
- the name of the class to be instantiated.
OpenEJBException
- if the class cannot be found or is not accessible .public Object newInstance(Class clazz) throws OpenEJBException
OpenEJBException
- if the class is not accessible .public SafeProperties getSafeProperties(Properties props) throws OpenEJBException
OpenEJBException
- the properties object passed in is null.public static Class loadClass(String className, String codebase) throws OpenEJBException
className
- codebase
-
ClassNotFoundException
OpenEJBException
public static Class loadClass(String className, String codebase, boolean cache) throws OpenEJBException
OpenEJBException
protected static ClassLoader getCodebaseClassLoader(String codebase) throws OpenEJBException
codebase
-
OpenEJBException
protected static ClassLoader getClassLoader(String codebase) throws OpenEJBException
codebase
-
OpenEJBException
public static ClassLoader getContextClassLoader()
public static Class loadTempClass(String className, String codebase) throws OpenEJBException
className
- codebase
-
ClassNotFoundException
OpenEJBException
public static Class loadTempClass(String className, String codebase, boolean cache) throws OpenEJBException
OpenEJBException
public static void unloadTempCodebase(String codebase)
protected static ClassLoader getCodebaseTempClassLoader(String codebase) throws OpenEJBException
codebase
-
OpenEJBException
protected static ClassLoader getTempClassLoader(String codebase) throws OpenEJBException
codebase
-
OpenEJBException
protected static File createTempCopy(String codebase) throws OpenEJBException
OpenEJBException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |