org.jboss.proxy.ejb
Class EJBMetaDataImpl

java.lang.Object
  extended byorg.jboss.proxy.ejb.EJBMetaDataImpl
All Implemented Interfaces:
EJBMetaData (src) , java.io.Serializable

public class EJBMetaDataImpl
extends java.lang.Object
implements EJBMetaData (src) , java.io.Serializable

An implementation of the EJBMetaData interface which allows a client to obtain the enterprise Bean's meta-data information.

See Also:
Serialized Form

Constructor Summary
EJBMetaDataImpl(java.lang.Class remote, java.lang.Class home, java.lang.Class pkClass, boolean session, boolean statelessSession, HomeHandle (src)  homeHandle)
          Construct an EJBMetaDataImpl.
 
Method Summary
 EJBHome (src) getEJBHome()
          Obtain the home interface of the enterprise Bean.
 java.lang.Class getHomeInterfaceClass()
          Obtain the Class object for the enterprise Bean's 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
 

Constructor Detail

EJBMetaDataImpl

public EJBMetaDataImpl(java.lang.Class remote,
                       java.lang.Class home,
                       java.lang.Class pkClass,
                       boolean session,
                       boolean statelessSession,
                       HomeHandle (src)  homeHandle)
Construct an EJBMetaDataImpl. this should only be accessible from the factory.

Method Detail

getEJBHome

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

Specified by:
getEJBHome in interface EJBMetaData (src)
Returns:
The home interface of the enterprise Bean.
Throws:
EJBException (src) - Failed to get EJBHome object.

getHomeInterfaceClass

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

Specified by:
getHomeInterfaceClass in interface EJBMetaData (src)
Returns:
The class object for the enterprise Bean's 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 (src)
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 (src)
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 (src)
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 (src)
Returns:
True if the type of the enterprise Bean is stateless session.