org.openejb.alt.config
Class TempCodebase

java.lang.Object
  extended by org.openejb.alt.config.TempCodebase

public class TempCodebase
extends java.lang.Object

Version:
$Revision: 2082 $ $Date: 2005-08-15 21:18:56 -0700 (Mon, 15 Aug 2005) $

Field Summary
protected static java.util.HashMap tempCodebases
           
 
Constructor Summary
TempCodebase(java.lang.String codebase)
           
 
Method Summary
protected static java.io.File createTempCopy(java.lang.String codebase)
           
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getCodebase()
           
protected static java.lang.ClassLoader getCodebaseTempClassLoader(java.lang.String codebase)
          Ensures that a class loader for each code base used in the system is created at most one time.
protected static java.lang.ClassLoader getTempClassLoader(java.lang.String codebase)
          Ensures that a class loader for each code base used in the system is created at most one time.
static TempCodebase getTempCodebase(java.lang.String codebase)
           
 java.lang.Class loadClass(java.lang.String className)
           
static void unloadTempCodebase(java.lang.String codebase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempCodebases

protected static final java.util.HashMap tempCodebases
Constructor Detail

TempCodebase

public TempCodebase(java.lang.String codebase)
             throws OpenEJBException
Throws:
OpenEJBException
Method Detail

getCodebase

public java.lang.String getCodebase()

getClassLoader

public java.lang.ClassLoader getClassLoader()

getTempCodebase

public static TempCodebase getTempCodebase(java.lang.String codebase)
                                    throws OpenEJBException
Throws:
OpenEJBException

loadClass

public java.lang.Class loadClass(java.lang.String className)
                          throws OpenEJBException
Throws:
OpenEJBException

unloadTempCodebase

public static void unloadTempCodebase(java.lang.String codebase)

getCodebaseTempClassLoader

protected static java.lang.ClassLoader getCodebaseTempClassLoader(java.lang.String codebase)
                                                           throws OpenEJBException
Ensures that a class loader for each code base used in the system is created at most one time. The default bootsrap classloader is used if codebase is null.

Parameters:
codebase -
Returns:
ClassLoader
Throws:
OpenEJBException

getTempClassLoader

protected static java.lang.ClassLoader getTempClassLoader(java.lang.String codebase)
                                                   throws OpenEJBException
Ensures that a class loader for each code base used in the system is created at most one time. The default bootsrap classloader is used if codebase is null.

Parameters:
codebase -
Returns:
ClassLoader
Throws:
OpenEJBException

createTempCopy

protected static java.io.File createTempCopy(java.lang.String codebase)
                                      throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.