public class EjbJarXml extends AbstractDescriptor implements J2eeDescriptor
ejb-jar.xml
to provide convenience methods for easy access and manipulation.Constructor and Description |
---|
EjbJarXml(Document theDocument)
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, getDocument, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getRootElement, getText, replaceElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocument
public EjbJarXml(Document theDocument)
theDocument
- The DOM document representing the parsed deployment
descriptorpublic 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.