org.objectweb.jonas_lib.genbase.archive
Class Ejb

java.lang.Object
  extended by org.objectweb.jonas_lib.genbase.archive.Ejb
All Implemented Interfaces:
EjbRefModule, WsClient

public class Ejb
extends java.lang.Object
implements EjbRefModule, WsClient

Ejb represent a Bean in an EjbJar.

Author:
Guillaume Sauthier

Constructor Summary
Ejb(BeanDesc bd, org.w3c.dom.Element bean)
          Creates a new Ejb from a BeanDesc
 
Method Summary
 void close()
          Close this archive
 java.util.List getEjbRefDescs()
          Returns the list of ejb-ref elements contained by a module.
 org.w3c.dom.Element getJonasBeanElement()
          Returns the bean element.
 java.lang.String getName()
          Returns the bean name.
 java.util.List getServiceRefDescs()
          Returns the list of service-ref elements contained by a module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ejb

public Ejb(BeanDesc bd,
           org.w3c.dom.Element bean)
Creates a new Ejb from a BeanDesc

Parameters:
bd - the BeanDesc
bean - jonas specific bean Element (jonas-session/jonas-entity/jonas-message-driven)
Method Detail

getServiceRefDescs

public java.util.List getServiceRefDescs()
Returns the list of service-ref elements contained by a module.

Specified by:
getServiceRefDescs in interface WsClient
Returns:
the list of service-ref elements contained by a module.

getEjbRefDescs

public java.util.List getEjbRefDescs()
Returns the list of ejb-ref elements contained by a module.

Specified by:
getEjbRefDescs in interface EjbRefModule
Returns:
the list of ejb-ref elements contained by a module.

getName

public java.lang.String getName()
Returns the bean name.

Returns:
the bean name.

getJonasBeanElement

public org.w3c.dom.Element getJonasBeanElement()
Returns the bean element.

Returns:
the bean element.

close

public void close()
Close this archive