|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
java.lang.String jarFileName)
Factory method using deployment descriptor and Jonas deployment descriptor file names. |
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 java.lang.String |
getJOnASXmlContent()
Return the content of the jonas-web.xml file |
static boolean |
getParsingWithValidation()
|
static java.lang.String |
getXmlContent()
Return the content of the web.xml file |
static EjbJar |
loadEjbJar(java.io.Reader reader,
java.lang.String name)
Load the ejb_jar.xml file. |
static JonasEjbJar |
loadJonasEjbJar(java.io.Reader reader,
java.lang.String name)
Load the EjbJar file |
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()
public static DeploymentDesc getDeploymentDesc(java.lang.String ejbJarXmlFileName, java.lang.String jonasEjbJarXmlFileName, java.lang.String jarFileName) throws DeploymentDescException
DeploymentDescException
- when DeploymentDesc cannot be created with
given files.public static EjbJar loadEjbJar(java.io.Reader reader, java.lang.String name) throws DeploymentDescException
reader
- the reader of the XML file.
DeploymentDescException
- if the deployment descriptor
is corrupted.public static JonasEjbJar loadJonasEjbJar(java.io.Reader reader, java.lang.String name) throws DeploymentDescException
DeploymentDescException
public static void setParsingWithValidation(boolean v)
public static boolean getParsingWithValidation()
public static java.lang.String getXmlContent()
public static java.lang.String getJOnASXmlContent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |