org.ow2.jonas.generators.genbase.archive
Class Ejb

java.lang.Object
  extended by org.ow2.jonas.generators.genbase.archive.Ejb
All Implemented Interfaces:
EjbRefModule, WsClient

public class Ejb
extends Object
implements EjbRefModule, WsClient

Ejb represent a Bean in an EjbJar.

Author:
Guillaume Sauthier

Constructor Summary
Ejb(BeanDesc bd, Element bean)
          Creates a new Ejb from a BeanDesc
 
Method Summary
 void close()
          Close this archive
 List getEjbRefDescs()
          Returns the list of ejb-ref elements contained by a module.
 Element getJonasBeanElement()
          Returns the bean element.
 String getName()
          Returns the bean name.
 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,
           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 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 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 String getName()
Returns the bean name.

Returns:
the bean name.

getJonasBeanElement

public Element getJonasBeanElement()
Returns the bean element.

Returns:
the bean element.

close

public void close()
Close this archive



Copyright © 2010 OW2 Consortium. All Rights Reserved.