org.codehaus.cargo.module.webapp.websphere
Class IbmWebBndXmi

java.lang.Object
  extended by org.codehaus.cargo.module.AbstractDescriptor
      extended by org.codehaus.cargo.module.webapp.websphere.IbmWebBndXmi
All Implemented Interfaces:
Descriptor, VendorDescriptor, VendorWebAppDescriptor

public class IbmWebBndXmi
extends AbstractDescriptor
implements VendorWebAppDescriptor

Encapsulates the DOM representation of a websphere web deployment descriptor ibm-web-bnd.xmi to provide convenience methods for easy access and manipulation.

Version:
$Id: IbmWebBndXmi.java 1089 2006-07-15 19:39:59Z vmassol $

Constructor Summary
IbmWebBndXmi(org.w3c.dom.Document document)
          Constructor.
 
Method Summary
 void addEjbReference(java.lang.String name, java.lang.String jndiName)
          Adds a ejb reference description to the websphere web deployment descriptor.
 java.lang.String getFileName()
          Returns the file name of this descriptor.
 
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor
addElement, checkElement, createNestedText, getChildText, getDocument, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getRootElement, getText, replaceElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.module.Descriptor
getDocument
 

Constructor Detail

IbmWebBndXmi

public IbmWebBndXmi(org.w3c.dom.Document document)
Constructor.

Parameters:
document - The DOM document representing the parsed deployment descriptor
Method Detail

getFileName

public final java.lang.String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.

Specified by:
getFileName in interface Descriptor
Returns:
the file name
See Also:
Descriptor.getFileName()

addEjbReference

public final void addEjbReference(java.lang.String name,
                                  java.lang.String jndiName)
Adds a ejb reference description to the websphere web deployment descriptor.

Specified by:
addEjbReference in interface VendorWebAppDescriptor
Parameters:
name - name of the reference
jndiName - jndi name to map


Copyright © 2004-2010 Codehaus. All Rights Reserved.