Class WeblogicEjbJarXml
- java.lang.Object
-
- org.jdom2.Document
-
- org.codehaus.cargo.module.AbstractDescriptor
-
- org.codehaus.cargo.module.ejb.weblogic.WeblogicEjbJarXml
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Descriptor
,VendorEjbDescriptor
,VendorDescriptor
,org.jdom2.NamespaceAware
,org.jdom2.Parent
public class WeblogicEjbJarXml extends AbstractDescriptor implements VendorEjbDescriptor
Encapsulates the DOM representation of a weblogic ejb deployment descriptorweblogic-ejb-jar.xml
to provide convenience methods for easy access and manipulation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeblogicEjbJarXml(org.jdom2.Element rootElement, DescriptorType type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDispatchPolicy(EjbDef ejb, String policy)
Adds a dispatch policy to a ejb definition.String
getDispatchPolicy(EjbDef ejb)
Returns the dispatch policy for a given ejb.String
getFileName()
Returns the file name of this descriptor.String
getJndiName(EjbDef ejb)
Returns the jndi name for an EJB.-
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor
addElement, checkElement, containsElement, createNestedText, getChildText, getChildText, getContentExceptComments, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText, sameContent, sameElement
-
Methods inherited from class org.jdom2.Document
addContent, addContent, addContent, addContent, canContainContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.codehaus.cargo.module.Descriptor
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTagByIdentifier, getTags, getTags
-
Methods inherited from interface org.jdom2.NamespaceAware
getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced
-
Methods inherited from interface org.jdom2.Parent
addContent, addContent, addContent, addContent, canContainContent, clone, cloneContent, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getParent, indexOf, removeContent, removeContent, removeContent, removeContent
-
-
-
-
Constructor Detail
-
WeblogicEjbJarXml
public WeblogicEjbJarXml(org.jdom2.Element rootElement, DescriptorType type)
Constructor.- Parameters:
rootElement
- The root of the DOM document representing the parsed deployment descriptortype
- The descriptor type
-
-
Method Detail
-
getFileName
public String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.- Specified by:
getFileName
in interfaceDescriptor
- Returns:
- the file name
-
getJndiName
public String getJndiName(EjbDef ejb)
Returns the jndi name for an EJB.- Specified by:
getJndiName
in interfaceVendorEjbDescriptor
- Parameters:
ejb
- The EjbDef to get the jndi for- Returns:
- the jndi name of the ejb
-
addDispatchPolicy
public void addDispatchPolicy(EjbDef ejb, String policy)
Adds a dispatch policy to a ejb definition.- Parameters:
ejb
- The ejb to be modifiedpolicy
- The policy to add- Throws:
IllegalArgumentException
- if the given ejb does not exist in the descriptor
-
getDispatchPolicy
public String getDispatchPolicy(EjbDef ejb)
Returns the dispatch policy for a given ejb.- Parameters:
ejb
- The ejb to get the dispatch policy for- Returns:
- the dispatch policy or null if no one is specified
- Throws:
IllegalArgumentException
- if the given ejb does not exist in the descriptor
-
-