org.objectweb.easybeans.container.svc
Class EasyBeansMetaData

java.lang.Object
  extended by org.objectweb.easybeans.container.svc.EasyBeansMetaData
All Implemented Interfaces:
EJBMetaData

public class EasyBeansMetaData
extends java.lang.Object
implements EJBMetaData

Metadata that are provided to the EJB 2.1 view clients.

Author:
Florent Benoit

Field Summary
private  EJBHome ejbHome
          EJB Home object.
private  java.lang.Class homeInterfaceClass
          Home interface class object.
private  java.lang.Class remoteInterfaceClass
          Remote Home interface class object.
private  boolean stateless
          Boolean used to indicate if the bean is a stateless bean or not.
 
Constructor Summary
EasyBeansMetaData(EJBHome ejbHome, java.lang.Class homeInterfaceClass, java.lang.Class remoteInterfaceClass, boolean stateless)
          Build a new metadata object with the given arguments.
 
Method Summary
 EJBHome getEJBHome()
          Obtain the remote home interface of the enterprise Bean.
 java.lang.Class getHomeInterfaceClass()
          Obtain the Class object for the enterprise Bean's remote home interface.
 java.lang.Class getPrimaryKeyClass()
          Obtain the Class object for the enterprise Bean's primary key class.
 java.lang.Class getRemoteInterfaceClass()
          Obtain the Class object for the enterprise Bean's remote interface.
 boolean isSession()
          Test if the enterprise Bean's type is "session".
 boolean isStatelessSession()
          Test if the enterprise Bean's type is "stateless session".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateless

private boolean stateless
Boolean used to indicate if the bean is a stateless bean or not.


ejbHome

private EJBHome ejbHome
EJB Home object.


homeInterfaceClass

private java.lang.Class homeInterfaceClass
Home interface class object.


remoteInterfaceClass

private java.lang.Class remoteInterfaceClass
Remote Home interface class object.

Constructor Detail

EasyBeansMetaData

public EasyBeansMetaData(EJBHome ejbHome,
                         java.lang.Class homeInterfaceClass,
                         java.lang.Class remoteInterfaceClass,
                         boolean stateless)
Build a new metadata object with the given arguments.

Parameters:
ejbHome - the given ejb home object
homeInterfaceClass - the given interface used for the Home.
remoteInterfaceClass - the given interface used for the remote.
stateless - if true, it means that it is a stateless object.
Method Detail

getEJBHome

public EJBHome getEJBHome()
Obtain the remote home interface of the enterprise Bean.

Specified by:
getEJBHome in interface EJBMetaData
Returns:
the remote home interface of the enterprise Bean.

getHomeInterfaceClass

public java.lang.Class getHomeInterfaceClass()
Obtain the Class object for the enterprise Bean's remote home interface.

Specified by:
getHomeInterfaceClass in interface EJBMetaData
Returns:
the Class object for the enterprise Bean's remote home interface.

getRemoteInterfaceClass

public java.lang.Class getRemoteInterfaceClass()
Obtain the Class object for the enterprise Bean's remote interface.

Specified by:
getRemoteInterfaceClass in interface EJBMetaData
Returns:
the Class object for the enterprise Bean's remote interface.

getPrimaryKeyClass

public java.lang.Class getPrimaryKeyClass()
Obtain the Class object for the enterprise Bean's primary key class.

Specified by:
getPrimaryKeyClass in interface EJBMetaData
Returns:
the Class object for the enterprise Bean's primary key class.

isSession

public boolean isSession()
Test if the enterprise Bean's type is "session".

Specified by:
isSession in interface EJBMetaData
Returns:
True if the type of the enterprise Bean is session bean.

isStatelessSession

public boolean isStatelessSession()
Test if the enterprise Bean's type is "stateless session".

Specified by:
isStatelessSession in interface EJBMetaData
Returns:
True if the type of the enterprise Bean is stateless session.