com.caucho.config.cfg
Class BeanConfig

java.lang.Object
  extended by com.caucho.config.cfg.BeanConfig
Direct Known Subclasses:
ActivationSpecConfig, AuthenticatorConfig, ConnectionFactoryConfig, InterfaceConfig, JmsConnectionFactoryConfig, JmsQueueConfig, JmsTopicConfig, LogHandlerConfig, RemoteClient, ResourceAdapterBeanConfig, ScheduledTaskConfig, ServletProtocolConfig

@Module
public class BeanConfig
extends java.lang.Object

Backward-compat configuration for the xml web bean component.


Field Summary
protected  Bean<?> _bean
           
 
Constructor Summary
BeanConfig()
           
 
Method Summary
 void addBinding(java.lang.annotation.Annotation binding)
          Adds a component binding.
 void addCustomBean(XmlBeanConfig<?> customBean)
           
 void addInitProgram(ConfigProgram program)
           
 void addOptionalStringProperty(java.lang.String name, java.lang.String value)
          Adds an init property
 void addParam(ConfigProgram param)
          Sets any new values
 void addProperty(java.lang.String name, java.lang.Object value)
          Adds an init property
 void addStringProperty(java.lang.String name, java.lang.String value)
          Adds an init property
 java.lang.Object createObjectNoInit()
           
protected  void deploy()
           
 java.lang.Class<?> getBeanConfigClass()
           
 InjectManager getBeanManager()
           
 java.util.ArrayList<java.lang.annotation.Annotation> getBindingList()
           
protected  java.lang.String getCdiNamed()
           
 java.lang.Class<?> getClassType()
           
 Bean<?> getComponent()
           
protected  java.lang.String getDefaultScope()
           
 java.lang.String getFilename()
           
 ContainerProgram getInit()
           
 int getLine()
           
 java.lang.String getMBeanName()
           
 java.lang.String getName()
          Gets the component's EL binding name.
 java.lang.Object getObject()
           
 java.util.ArrayList<java.lang.annotation.Annotation> getStereotypeList()
           
protected  java.lang.String getTagName()
           
 java.lang.String getUri()
          Returns the uri
 void init()
           
protected  void introspectPostInit()
          Introspection after the init has been set and before the @PostConstruct for additional interception
protected  boolean isDefaultService()
           
protected  boolean isStartup()
           
 void setBeanConfigClass(java.lang.Class<?> cl)
           
 void setClass(java.lang.Class<?> cl)
          Sets the component implementation class.
 void setConfigLocation(java.lang.String filename, int line)
          Resin Config location
 void setInit(ContainerProgram init)
          Sets the init program.
 void setJndiName(java.lang.String jndiName)
           
 void setMbeanClass(java.lang.Class cl)
           
 void setMbeanInterface(java.lang.Class<?> cl)
           
 void setMbeanName(java.lang.String mbeanName)
           
 void setName(java.lang.String name)
          Returns the component's EL binding name.
 void setScope(java.lang.String scope)
          Sets the scope attribute.
 void setScopeType(java.lang.Class<?> cl)
           
 void setService(boolean isService)
           
 void setType(java.lang.Class<?> cl)
          backwards compat
 void setUri(java.lang.String uri)
          uri-style configuration like the jms-queue url="memory:"
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bean

protected Bean<?> _bean
Constructor Detail

BeanConfig

public BeanConfig()
Method Detail

getBeanManager

public InjectManager getBeanManager()

getDefaultScope

protected java.lang.String getDefaultScope()

isDefaultService

protected boolean isDefaultService()

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.


setType

public void setType(java.lang.Class<?> cl)
backwards compat


setClass

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


getClassType

public java.lang.Class<?> getClassType()

getComponent

public Bean<?> getComponent()

addBinding

public void addBinding(java.lang.annotation.Annotation binding)
Adds a component binding.


getBindingList

public java.util.ArrayList<java.lang.annotation.Annotation> getBindingList()

getStereotypeList

public java.util.ArrayList<java.lang.annotation.Annotation> getStereotypeList()

setScope

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


setScopeType

public void setScopeType(java.lang.Class<?> cl)

addParam

public void addParam(ConfigProgram param)
Sets any new values


setInit

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


addInitProgram

public void addInitProgram(ConfigProgram program)

getInit

public ContainerProgram getInit()

addStringProperty

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


addProperty

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


addOptionalStringProperty

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


setService

public void setService(boolean isService)

setConfigLocation

public void setConfigLocation(java.lang.String filename,
                              int line)
Resin Config location


getFilename

public java.lang.String getFilename()

getLine

public int getLine()

setJndiName

public void setJndiName(java.lang.String jndiName)

setMbeanName

public void setMbeanName(java.lang.String mbeanName)

getMBeanName

public java.lang.String getMBeanName()

setMbeanClass

public void setMbeanClass(java.lang.Class cl)

setMbeanInterface

public void setMbeanInterface(java.lang.Class<?> cl)

getBeanConfigClass

public java.lang.Class<?> getBeanConfigClass()

setBeanConfigClass

public void setBeanConfigClass(java.lang.Class<?> cl)

setUri

public void setUri(java.lang.String uri)
uri-style configuration like the jms-queue url="memory:"


getUri

public java.lang.String getUri()
Returns the uri


addCustomBean

public void addCustomBean(XmlBeanConfig<?> customBean)

getTagName

protected java.lang.String getTagName()

isStartup

protected boolean isStartup()

init

@PostConstruct
public void init()

getCdiNamed

protected java.lang.String getCdiNamed()

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()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object