|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.DescriptionGroupDesc org.ow2.jonas.deployment.ejb.DeploymentDesc
public abstract class DeploymentDesc
Class to hold meta-information related to the deployment of an ejb-jar
Field Summary | |
---|---|
protected AssemblyDescriptor |
asd
Assembly descriptor |
protected HashMap |
beanDesc
Set of enterprise beans deployment descriptors |
protected String |
ejbClientJar
Deployment desc's file name (jar or directory) |
protected String |
fileName
Deployment desc's file name (jar or directory) |
protected JLinkedList |
jonasMDList
List of JonasMessageDestinations |
protected org.objectweb.util.monolog.api.Logger |
logger
Logger |
protected String |
specVersion
Ejb spec version |
Fields inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc |
---|
description, displayName, largeIcon, smallIcon |
Constructor Summary | |
---|---|
DeploymentDesc(ClassLoader classLoader,
EjbJar ejbJar,
JonasEjbJar jonasEjbJar,
org.objectweb.util.monolog.api.Logger l,
String fileName)
Build the Meta-Information from the XML data binding trees containing the EJB and JOnAS deployment descriptors. |
Method Summary | |
---|---|
EntityCmp2Desc |
asn2BeanDesc(String asn)
Get bean descriptor given its abstract schema name |
BeanDesc[] |
getBeanDesc()
Get descriptors for all beans contained in jar file |
BeanDesc |
getBeanDesc(String ejbName)
Get bean descriptor given its name |
Iterator |
getBeanDescIterator()
Get an Iterator on the Bean Desc list |
BeanDesc |
getBeanDescWithLocalInterface(String itfLocalName)
Get bean descriptor given its interface local name |
String |
getDisplayName()
Get the display name |
String |
getEjbClientJar()
Get the ejb-client-jar name |
ExcludeListDesc |
getExcludeListDesc()
Get the exclude list of the assembly descriptor |
JonasMessageDestination |
getJonasMessageDestination(String mdLink)
Get the JOnAS message destination for the given name |
String |
getJOnASXmlContent()
Return the content of the jonas-web.xml file |
org.objectweb.util.monolog.api.Logger |
getLogger()
get the current logger |
boolean |
getMessageDestination(String mdLink)
Find the JOnAS message destination for the given name |
List |
getMethodPermissionsDescList()
Get the list of the methodPermissionDesc objects which represent method-permission elements in assembly-descriptor |
Boolean |
getMonitoringEnabled()
|
String[] |
getRolesForRunAsPrincipal(String principalName)
Gets the Mapping for run-as principal |
Integer |
getWarningThreshold()
|
String |
getXmlContent()
Return the content of the web.xml file |
protected abstract BeanDesc |
newEntityBeanDesc(ClassLoader cl,
Entity ent,
AssemblyDescriptor asd,
JonasEntity j,
JLinkedList jMDRList)
In case of beans with old CMP1 persistance, we need to instanciate the old class, as if we were in an old Deployment Descriptor. |
void |
setJOnASXmlContent(String jonasXmlContent)
|
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
set the current logger |
void |
setXmlContent(String xmlContent)
|
String |
toString()
String representation of the object for test purpose |
Methods inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc |
---|
getDescription, getLargeIcon, getSAXMsg, getSmallIcon |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.objectweb.util.monolog.api.Logger logger
protected String specVersion
protected HashMap beanDesc
protected AssemblyDescriptor asd
protected String fileName
protected String ejbClientJar
protected JLinkedList jonasMDList
Constructor Detail |
---|
public DeploymentDesc(ClassLoader classLoader, EjbJar ejbJar, JonasEjbJar jonasEjbJar, org.objectweb.util.monolog.api.Logger l, String fileName) throws DeploymentDescException
classLoader
- The Class Loader to be usedejbJar
- The EjbJar information, from standard deployment descriptor.jonasEjbJar
- The JonasEjbJar information, from JOnAS specific deployment descriptor.l
- The logger to be used for tracingfileName
- deployment desc's jar or directory name
DeploymentDescException
- Cannot deploy beanMethod Detail |
---|
public Iterator getBeanDescIterator()
public BeanDesc[] getBeanDesc()
public String[] getRolesForRunAsPrincipal(String principalName)
principalName
- name of the run-as principal
public BeanDesc getBeanDesc(String ejbName)
ejbName
- the name of the bean in the Deployment Descriptor
public EntityCmp2Desc asn2BeanDesc(String asn)
asn
- Abstract Schema Name
public List getMethodPermissionsDescList()
public ExcludeListDesc getExcludeListDesc()
public BeanDesc getBeanDescWithLocalInterface(String itfLocalName)
itfLocalName
- local interface name
public boolean getMessageDestination(String mdLink)
mdLink
- the name of the message destination link in the Deployment Descriptor
public JonasMessageDestination getJonasMessageDestination(String mdLink)
mdLink
- the name of the message destination link in the Deployment Descriptor
protected abstract BeanDesc newEntityBeanDesc(ClassLoader cl, Entity ent, AssemblyDescriptor asd, JonasEntity j, JLinkedList jMDRList) throws DeploymentDescException
cl
- The ClassLoader to be usedent
- Entity MetaInformation from XML filesasd
- AssemblyDescriptor MetaInformation from XML filesj
- JonasEntity MetaInformation from XML filesjMDRList
- MessageDrivenRef list
DeploymentDescException
- Cannot build Entity Descriptorpublic String getDisplayName()
getDisplayName
in interface IDescriptionGroupDesc
getDisplayName
in class DescriptionGroupDesc
public String getEjbClientJar()
public org.objectweb.util.monolog.api.Logger getLogger()
public void setLogger(org.objectweb.util.monolog.api.Logger logger)
logger
- the Loggerpublic String getXmlContent()
public String getJOnASXmlContent()
public String toString()
toString
in interface IDescriptionGroupDesc
toString
in class DescriptionGroupDesc
public void setXmlContent(String xmlContent)
xmlContent
- XML Contentpublic void setJOnASXmlContent(String jonasXmlContent)
jonasXmlContent
- XML Contentpublic Boolean getMonitoringEnabled()
public Integer getWarningThreshold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |