public class WeblogicEjbJarXml extends AbstractDescriptor implements VendorEjbDescriptor
weblogic-ejb-jar.xml
to provide convenience methods for easy access and
manipulation.Constructor and Description |
---|
WeblogicEjbJarXml(Document document)
Constructor.
|
Modifier and Type | Method and 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.
|
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 WeblogicEjbJarXml(Document document)
document
- The DOM document representing the parsed deployment descriptorpublic String getFileName()
getFileName
in interface Descriptor
Descriptor.getFileName()
public String getJndiName(EjbDef ejb)
getJndiName
in interface VendorEjbDescriptor
ejb
- The EjbDef to get the jndi forVendorEjbDescriptor.getJndiName(EjbDef)
public void addDispatchPolicy(EjbDef ejb, String policy)
ejb
- The ejb to be modifiedpolicy
- The policy to addIllegalArgumentException
- if the given ejb does not exist in the descriptorpublic String getDispatchPolicy(EjbDef ejb)
ejb
- The ejb to get the dispatch policy forIllegalArgumentException
- if the given ejb does not exist in the descriptorCopyright © 2004-2013 Codehaus. All Rights Reserved.