public class EjbJarXml extends AbstractDescriptor implements J2eeDescriptor
ejb-jar.xml
to provide convenience methods for easy access and manipulation.Constructor and Description |
---|
EjbJarXml(org.jdom.Element rootElement,
DescriptorType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addVendorDescriptor(VendorEjbDescriptor descr)
Associates a vendor specific descriptor with this web.xml.
|
Entity |
getEntityEjb(String name)
Return a specific entity definition.
|
Iterator |
getEntityEjbs()
Returns all entity ejbs in this descriptor.
|
String |
getFileName()
Returns the file name of this descriptor.
|
Session |
getSessionEjb(String name)
Return a specific session definition.
|
Iterator |
getSessionEjbs()
Returns all session ejbs in this descriptor.
|
Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this J2EE deployment descriptor.
|
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText
addContent, addContent, addContent, addContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTags
public EjbJarXml(org.jdom.Element rootElement, DescriptorType type)
rootElement
- the root element of the documenttype
- the document descriptor typepublic String getFileName()
getFileName
in interface Descriptor
Descriptor.getFileName()
public void addVendorDescriptor(VendorEjbDescriptor descr)
descr
- the vendor specific dexcriptor to associatepublic Iterator getVendorDescriptors()
web.xml
is
jboss-web.xml
.getVendorDescriptors
in interface J2eeDescriptor
J2eeDescriptor.getVendorDescriptors()
public final Iterator getSessionEjbs()
public final Iterator getEntityEjbs()
public final Session getSessionEjb(String name)
name
- the name of the ejb.Copyright © 2004-2013 Codehaus. All Rights Reserved.