org.openejb.alt.config
Class TempCodebase

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

public class TempCodebase
extends Object

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

Field Summary
protected static HashMap tempCodebases
           
 
Constructor Summary
TempCodebase(String codebase)
           
 
Method Summary
protected static File createTempCopy(String codebase)
           
 ClassLoader getClassLoader()
           
 String getCodebase()
           
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.
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 TempCodebase getTempCodebase(String codebase)
           
 Class loadClass(String className)
           
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

tempCodebases

protected static final HashMap tempCodebases
Constructor Detail

TempCodebase

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

getCodebase

public String getCodebase()

getClassLoader

public ClassLoader getClassLoader()

getTempCodebase

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

loadClass

public Class loadClass(String className)
                throws OpenEJBException
Throws:
OpenEJBException

unloadTempCodebase

public static void unloadTempCodebase(String codebase)

getCodebaseTempClassLoader

protected static ClassLoader getCodebaseTempClassLoader(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 ClassLoader getTempClassLoader(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 File createTempCopy(String codebase)
                              throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2010 OpenEJB. All Rights Reserved.