org.apache.beehive.controls.system.ejb
Class EJBInfo

Object
  extended by EJBInfo

public class EJBInfo
extends Object

The EJBInfo class is a support class that derives EJB information by reflecting on an EJB control interface. This is implemented by a static inner class to make this functionality accesible in both static and non-static contexts


Field Summary
 Class _beanInterface
          Deprecated. Use the JavaBean getter / setter instead
 String _beanType
          Deprecated. Use the JavaBean getter / setter instead
 Class _homeInterface
          Deprecated. Use the JavaBean getter / setter instead
 boolean _isLocal
          Deprecated. Use the JavaBean getter / setter instead
 String _refName
          Deprecated. Use the JavaBean getter / setter instead
 
Constructor Summary
EJBInfo(Class controlInterface)
          Derives bean attributes from the control interface
 
Method Summary
 Class getBeanInterface()
           
 String getBeanType()
           
static String getEJBRefName(Class jcxClass)
          Computes a unique local ejb ref name based upon the JCX class name
 Class getHomeInterface()
           
 String getRefName()
           
 Class getRoot(Class clazz, HashMap derivesFrom)
          Unwinds the results of reflecting through the interface inheritance hierachy to find the original root class from a derived class
protected static boolean isFinderMethod(Method m)
           
 boolean isLocal()
           
protected static boolean methodThrows(Method m, Class exceptionClass)
           
 void setBeanInterface(Class beanInterface)
           
 void setBeanType(String beanType)
           
 void setHomeInterface(Class homeInterface)
           
 void setLocal(boolean local)
           
 void setRefName(String refName)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_refName

public String _refName
Deprecated. Use the JavaBean getter / setter instead

_homeInterface

public Class _homeInterface
Deprecated. Use the JavaBean getter / setter instead

_beanInterface

public Class _beanInterface
Deprecated. Use the JavaBean getter / setter instead

_beanType

public String _beanType
Deprecated. Use the JavaBean getter / setter instead

_isLocal

public boolean _isLocal
Deprecated. Use the JavaBean getter / setter instead
Constructor Detail

EJBInfo

public EJBInfo(Class controlInterface)
Derives bean attributes from the control interface

Method Detail

getRoot

public Class getRoot(Class clazz,
                     HashMap derivesFrom)
Unwinds the results of reflecting through the interface inheritance hierachy to find the original root class from a derived class


getEJBRefName

public static String getEJBRefName(Class jcxClass)
Computes a unique local ejb ref name based upon the JCX class name


getRefName

public String getRefName()

setRefName

public void setRefName(String refName)

getHomeInterface

public Class getHomeInterface()

setHomeInterface

public void setHomeInterface(Class homeInterface)

getBeanInterface

public Class getBeanInterface()

setBeanInterface

public void setBeanInterface(Class beanInterface)

getBeanType

public String getBeanType()

setBeanType

public void setBeanType(String beanType)

isLocal

public boolean isLocal()

setLocal

public void setLocal(boolean local)

toString

public String toString()
Overrides:
toString in class Object

isFinderMethod

protected static boolean isFinderMethod(Method m)

methodThrows

protected static boolean methodThrows(Method m,
                                      Class exceptionClass)