com.caucho.webbeans.cfg
Class AbstractBeanConfig

java.lang.Object
  extended by com.caucho.webbeans.cfg.AbstractBeanConfig
Direct Known Subclasses:
JavaMailConfig, JmsConnectionFactoryConfig, MessageBeanConfig, StatefulBeanConfig, StatelessBeanConfig

public abstract class AbstractBeanConfig
extends java.lang.Object

Convenience classes for the bean config


Constructor Summary
protected AbstractBeanConfig()
           
 
Method Summary
 void addBinding(WbBinding binding)
          Adds a component binding.
 WbComponentType getComponentType()
          Gets the component type.
 java.lang.String getFilename()
           
 ContainerProgram getInit()
          Sets the init program.
 java.lang.Class getInstanceClass()
          Returns the instance class
 java.lang.String getJndiName()
          Gets the component's EL binding name.
 int getLine()
           
 java.lang.String getName()
          Gets the component's EL binding name.
protected  void register()
           
protected  void register(java.lang.Object value)
           
protected  void register(java.lang.Object value, java.lang.Class api)
           
 void setClass(java.lang.Class cl)
          Assigns the class
 void setComponentType(java.lang.Class type)
          Sets the component type.
 void setConfigLocation(java.lang.String filename, int line)
          Sets the configuration location
 void setInit(ContainerProgram init)
          Sets the init program.
 void setJndiName(java.lang.String name)
          Returns the component's EL binding name.
 void setName(java.lang.String name)
          Returns the component's EL binding name.
 void setScope(java.lang.String scope)
          Sets the scope attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanConfig

protected AbstractBeanConfig()
Method Detail

setConfigLocation

public void setConfigLocation(java.lang.String filename,
                              int line)
Sets the configuration location


getFilename

public java.lang.String getFilename()

getLine

public int getLine()

setName

public void setName(java.lang.String name)
Returns the component's EL binding name.


getName

public java.lang.String getName()
Gets the component's EL binding name.


setJndiName

public void setJndiName(java.lang.String name)
Returns the component's EL binding name.


getJndiName

public java.lang.String getJndiName()
Gets the component's EL binding name.


setClass

public void setClass(java.lang.Class cl)
Assigns the class


getInstanceClass

public java.lang.Class getInstanceClass()
Returns the instance class


setComponentType

public void setComponentType(java.lang.Class type)
Sets the component type.


getComponentType

public WbComponentType getComponentType()
Gets the component type.


addBinding

public void addBinding(WbBinding binding)
Adds a component binding.


setScope

public void setScope(java.lang.String scope)
Sets the scope attribute.


setInit

public void setInit(ContainerProgram init)
Sets the init program.


getInit

public ContainerProgram getInit()
Sets the init program.


register

protected void register()

register

protected void register(java.lang.Object value)

register

protected void register(java.lang.Object value,
                        java.lang.Class api)