com.caucho.webbeans.cfg
Class WbComponentConfig

java.lang.Object
  extended by com.caucho.webbeans.cfg.WbComponentConfig
Direct Known Subclasses:
BeanConfig

public class WbComponentConfig
extends java.lang.Object

Configuration for the xml web bean component.


Field Summary
protected  ComponentImpl _comp
           
 
Constructor Summary
WbComponentConfig()
           
WbComponentConfig(WbWebBeans webbeans)
           
 
Method Summary
 void addBinding(WbBinding binding)
          Adds a component binding.
 void addOptionalStringProperty(java.lang.String name, java.lang.String value)
          Adds an init property
 void addParam(ConfigProgram param)
          Sets any new values
 void addStringProperty(java.lang.String name, java.lang.String value)
          Adds an init property
 java.lang.Object createObjectNoInit()
           
protected  void deploy()
           
 java.util.ArrayList<WbBinding> getBindingList()
           
 java.lang.Class getClassType()
           
 ComponentImpl getComponent()
           
 ComponentImpl getComponentFactory()
          Returns the configured component factory.
 WbComponentType getComponentType()
          Sets the component type.
 ContainerProgram getInit()
           
 java.lang.String getMBeanName()
          Returns the mbean-name
 java.lang.String getName()
          Gets the component's EL binding name.
 java.lang.Object getObject()
           
protected  java.lang.String getTagName()
          Returns the XML tag name for debugging.
 WbComponentType getType()
          Gets the component type.
 void init()
          Initialization.
protected  void introspectPostInit()
          Introspection after the init has been set and before the @PostConstruct for additional interception
 void setClass(java.lang.Class cl)
          Sets the component implementation class.
 void setComponentType(WbComponentType type)
          Sets the component type.
 void setInit(ContainerProgram init)
          Sets the init program.
 void setName(java.lang.String name)
          Returns the component's EL binding name.
 void setScope(java.lang.String scope)
          Sets the scope attribute.
 void setType(java.lang.Class type)
          Sets the component type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_comp

protected ComponentImpl _comp
Constructor Detail

WbComponentConfig

public WbComponentConfig()

WbComponentConfig

public WbComponentConfig(WbWebBeans webbeans)
Method Detail

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.


getMBeanName

public java.lang.String getMBeanName()
Returns the mbean-name


setType

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


getType

public WbComponentType getType()
Gets the component type.


setComponentType

public void setComponentType(WbComponentType type)
Sets the component type.


getComponentType

public WbComponentType getComponentType()
Sets the component type.


setClass

public void setClass(java.lang.Class cl)
Sets the component implementation class.


getClassType

public java.lang.Class getClassType()

getComponent

public ComponentImpl getComponent()

addBinding

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


getBindingList

public java.util.ArrayList<WbBinding> getBindingList()

setScope

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


addParam

public void addParam(ConfigProgram param)
Sets any new values


setInit

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


getInit

public ContainerProgram getInit()

addStringProperty

public void addStringProperty(java.lang.String name,
                              java.lang.String value)
Adds an init property


addOptionalStringProperty

public void addOptionalStringProperty(java.lang.String name,
                                      java.lang.String value)
Adds an init property


getComponentFactory

public ComponentImpl getComponentFactory()
Returns the configured component factory.


init

public void init()
Initialization.


getTagName

protected java.lang.String getTagName()
Returns the XML tag name for debugging.


introspectPostInit

protected void introspectPostInit()
Introspection after the init has been set and before the @PostConstruct for additional interception


deploy

protected void deploy()

getObject

public java.lang.Object getObject()

createObjectNoInit

public java.lang.Object createObjectNoInit()