|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openejb.util.SafeToolkit
Field Summary | |
protected static java.util.HashMap |
codebases
|
Constructor Summary | |
protected |
SafeToolkit(java.lang.String systemLocation)
Creates a new SafeToolkit dedicated to the specified system location. |
Method Summary | |
java.lang.Class |
forName(java.lang.String className)
Attempts to find and load the specified class. |
java.lang.Class |
forName(java.lang.String className,
java.lang.String codebase)
Attempts to find and load the specified class, using the specified codebase. |
protected static java.lang.ClassLoader |
getCodebaseClassLoader(java.lang.String codebase)
Ensures that a class loader for each code base used in the system is created at most one time. |
SafeProperties |
getSafeProperties(java.util.Properties props)
Returns a new SafeProperties instance dedicated to this toolkit. |
static SafeToolkit |
getToolkit(java.lang.String systemLocation)
Returns an instance of a SafeToolkit dedicated to the specified system location. |
static java.lang.Class |
loadClass(java.lang.String className,
java.lang.String codebase)
Loads the class using the class loader for the specific codebase. |
java.lang.Object |
newInstance(java.lang.Class clazz)
Attempts to instaniate the specified class. |
java.lang.Object |
newInstance(java.lang.String className)
Attempts to find and load the specified class then instaniate it. |
java.lang.Object |
newInstance(java.lang.String className,
java.lang.String codebase)
Attempts to find and load the specified class then instaniate it. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected static java.util.HashMap codebases
Constructor Detail |
protected SafeToolkit(java.lang.String systemLocation)
Method Detail |
public static SafeToolkit getToolkit(java.lang.String systemLocation)
public java.lang.Class forName(java.lang.String className) throws OpenEJBException
className
- the name of the class to be loaded.OpenEJBExcption
- if the class cannot be found.public java.lang.Class forName(java.lang.String className, java.lang.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.public java.lang.Object newInstance(java.lang.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 java.lang.Object newInstance(java.lang.String className, java.lang.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 java.lang.Object newInstance(java.lang.Class clazz) throws OpenEJBException
className
- the name of the class to be instantiated.OpenEJBException
- if the class is not accessible .public SafeProperties getSafeProperties(java.util.Properties props) throws OpenEJBException
className
- the name of the class to be instantiated.OpenEJBException
- the properties object passed in is null.public static java.lang.Class loadClass(java.lang.String className, java.lang.String codebase) throws OpenEJBException
className
- codebase
- java.lang.ClassNotFoundException
- OpenEJBException
- protected static java.lang.ClassLoader getCodebaseClassLoader(java.lang.String codebase) throws OpenEJBException
codebase
- OpenEJBException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |