|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager
This class provide a way for managing the EjbDeploymentDesc. Note that there is an intance of the EjbDeploymentDescManager on each JOnAS server.
Field Summary | |
static java.lang.String |
EJB_JAR_FILE_NAME
|
static java.lang.String |
JONAS_EJB_JAR_FILE_NAME
|
Method Summary | |
int |
getCacheSize()
Get the size of the cache (number of entries in the cache). |
static DeploymentDesc |
getDeploymentDesc(java.lang.String ejbjar,
java.lang.ClassLoader ejbLoader)
Factory method using the ejb-jar file name. |
static DeploymentDesc |
getDeploymentDesc(java.lang.String ejbJarXmlFileName,
java.lang.String jonasEjbJarXmlFileName)
Factory method using deployment descriptor and Jonas deployment descriptor file names. used by GEnIC or GenIDL |
DeploymentDesc |
getDeploymentDesc(java.net.URL url,
java.lang.ClassLoader ejbLoader,
java.lang.ClassLoader earLoader)
Get the specified ejb deployment descriptor and put it in the cache if it is not in. |
static EjbDeploymentDescManager |
getInstance()
Get an instance of the EjbDeploymentDescManager. |
static boolean |
getParsingWithValidation()
|
void |
removeCache(java.lang.ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
setAvailableEjbJarsAndAltDDs(java.lang.ClassLoader earClassLoader,
java.net.URL[] urls,
java.net.URL[] altDDs)
Set for the given ear identified by its earClassLoader the list of the ejb-jar that can be in the ejb-link and the optional Desployment Desc. |
static void |
setParsingWithValidation(boolean v)
|
java.lang.String |
toString()
Return a string representation of the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String EJB_JAR_FILE_NAME
public static final java.lang.String JONAS_EJB_JAR_FILE_NAME
Method Detail |
public static EjbDeploymentDescManager getInstance()
public static DeploymentDesc getDeploymentDesc(java.lang.String ejbjar, java.lang.ClassLoader ejbLoader) throws DeploymentDescException
ejbjar
- ejbjar file nameejbLoader
- classloader used to load bean classes.DeploymentDescException
- when DeploymentDesc cannot be created with
given ejb-jar file.public DeploymentDesc getDeploymentDesc(java.net.URL url, java.lang.ClassLoader ejbLoader, java.lang.ClassLoader earLoader) throws DeploymentDescException
url
- the url where to load xml deployment descriptors.ejbLoader
- classloader used to load bean classes.earLoader
- the parent classloader (the ear classloader). Null if
there in the case of an ejb-jar application.DeploymentDescException
- when DeploymentDesc cannot be created
with the given files.public void setAvailableEjbJarsAndAltDDs(java.lang.ClassLoader earClassLoader, java.net.URL[] urls, java.net.URL[] altDDs)
earClassLoader
- the classloader of the ear application.urls
- the list of the URLs of the ear application that can be in
the ejb-link.altDDs
- the list of the URLs of the alternate DDs to use if specified.public void removeCache(java.lang.ClassLoader earClassLoader)
earClassLoader
- the URLClassLoader of the ear application to
remove from the cache.public int getCacheSize()
public java.lang.String toString()
toString
in class java.lang.Object
public static DeploymentDesc getDeploymentDesc(java.lang.String ejbJarXmlFileName, java.lang.String jonasEjbJarXmlFileName) throws DeploymentDescException
DeploymentDescException
- when DeploymentDesc cannot be created with
given files.public static void setParsingWithValidation(boolean v)
public static boolean getParsingWithValidation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |