|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc
This class extends the AbsDeploymentDescriptor class of JOnAS It provides a description of the specific RAR desployment descriptor
Field Summary |
Fields inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc |
displayName |
Method Summary | |
static Connector |
getConnector()
Get the current Connector. |
static org.xml.sax.EntityResolver |
getEntityResolver()
Get the current EntityResolver. |
static org.xml.sax.ErrorHandler |
getErrorHandler()
Get the current ErrorHandler. |
static RarDeploymentDesc |
getInstance(javax.naming.Context ctx)
Get an instance of an RAR deployment descriptor by parsing the ra.xml and jonas-ra.xml deployment descriptors. |
static RarDeploymentDesc |
getInstance(java.lang.String rarFileName,
java.lang.ClassLoader classLoader)
Get an instance of an RAR deployment descriptor by parsing the ra.xml and jonas-ra.xml deployment descriptors. |
JonasConfigProperty[] |
getJonasConfigPropTags()
Get the config-property tags of the jonas-ra.xml file. |
static JonasConnector |
getJonasConnector()
Get the current JonasConnector. |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
ConfigProperty[] |
getRaConfigPropTags()
Get the config-property tags of the ra.xml file. |
static Connector |
loadConnector(java.io.Reader reader,
java.lang.String fileName)
Load the ra.xml file. |
static JonasConnector |
loadJonasConnector(java.io.Reader reader,
java.lang.String fileName)
Load the jonas-ra.xml file. |
static void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
Set the specified EntityResolver. |
static void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Set the specified ErrorHandler. |
static void |
setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors. |
void |
setRaConfigPropTags(Connector conn)
Set the config-property tags of the ra.xml file. |
java.lang.String |
toString()
Return a String representation of the RarDeploymentDesc. |
Methods inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc |
getDisplayName, getSAXMsg |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void setRaConfigPropTags(Connector conn)
conn
- the Connector objeect with the config-property tags of the ra.xml file.public ConfigProperty[] getRaConfigPropTags()
public JonasConfigProperty[] getJonasConfigPropTags()
public static RarDeploymentDesc getInstance(java.lang.String rarFileName, java.lang.ClassLoader classLoader) throws DeploymentDescException
rarFileName
- the fileName of the rar file for the deployment descriptors.classLoader
- the classloader for the classes.
DeploymentDescException
- if the deployment descriptors are
corrupted.public static RarDeploymentDesc getInstance(javax.naming.Context ctx) throws DeploymentDescException
ctx
- the context which contains the configuration in order to load the deployment descriptors.
There are 6 possible parameters :
- rarFileName is the path of the RAR file (required param).
- classLoader is the classloader (required param)
- altDD is the optional deployment descriptor (optional param).
DeploymentDescException
- if the deployment descriptors are
corrupted.public static Connector loadConnector(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
reader
- the Reader of the XML file.fileName
- the name of the file (ra.xml).
DeploymentDescException
- if the deployment descriptor is
corrupted.public static JonasConnector loadJonasConnector(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
reader
- the Reader of the XML file.fileName
- the name of the file (jonas-ra.xml).
DeploymentDescException
- if the deployment descriptor is
corrupted.public java.lang.String toString()
toString
in interface DeploymentDesc
toString
in class AbsDeploymentDesc
public static Connector getConnector()
public static org.xml.sax.ErrorHandler getErrorHandler()
public static org.xml.sax.EntityResolver getEntityResolver()
public static JonasConnector getJonasConnector()
public static boolean getParsingWithValidation()
public static void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
errorHandler
- the Error Handler to set.public static void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
entityResolver
- the Entity Resolver to set.public static void setParsingWithValidation(boolean validation)
validation
- if true, all external entities will be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |