com.caucho.ejb.metadata
Class Bean

java.lang.Object
  extended by com.caucho.ejb.metadata.Bean
All Implemented Interfaces:
EnvironmentBean

public class Bean
extends java.lang.Object
implements EnvironmentBean

Configuration for a new bean based on metadata.


Constructor Summary
Bean(EjbContainer ejbContainer)
           
 
Method Summary
 void addInit(ContainerProgram init)
          Adds an init.
 java.lang.ClassLoader getClassLoader()
           
protected  java.lang.String getEJBModuleName()
           
 void init()
          Initializes the bean.
 void setName(java.lang.String name)
          Sets the name.
 void setType(java.lang.Class type)
          Sets the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bean

public Bean(EjbContainer ejbContainer)
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface EnvironmentBean

getEJBModuleName

protected java.lang.String getEJBModuleName()

setName

public void setName(java.lang.String name)
Sets the name.


setType

public void setType(java.lang.Class type)
             throws ConfigException
Sets the type.

Throws:
ConfigException

addInit

public void addInit(ContainerProgram init)
Adds an init.


init

public void init()
          throws ConfigException
Initializes the bean.

Throws:
ConfigException