com.caucho.config.types
Class InterfaceConfig

java.lang.Object
  extended by com.caucho.config.cfg.BeanConfig
      extended by com.caucho.config.types.InterfaceConfig

public class InterfaceConfig
extends BeanConfig

Configures an interface type. Allows class and uri syntax


Field Summary
 
Fields inherited from class com.caucho.config.cfg.BeanConfig
_bean
 
Constructor Summary
InterfaceConfig()
           
InterfaceConfig(java.lang.Class<?> type)
           
InterfaceConfig(java.lang.Class<?> type, java.lang.String tagName)
           
 
Method Summary
 void deploy()
           
protected  java.lang.String getDefaultScope()
           
 java.lang.Object getObject()
           
 java.lang.Object getObjectNoInit()
           
 java.lang.String getTagName()
          Sets the tag name.
 void init()
          Override init to handle value
 java.lang.Object replaceObject()
          Returns the configured object for configuration
 java.lang.Object replaceObjectNoInit()
          Returns the configured object for configuration
 void setClass(java.lang.Class<?> cl)
          Check for correct type.
 void setDeploy(boolean isDeploy)
          Sets the default deploy value
 void setFactory(boolean isFactory)
          Sets the default factory value
 void setJndiName(java.lang.String name)
          If the name is set, the bean will get deployed
 void setName(java.lang.String name)
          If the name is set, the bean will get deployed
 void setTagName(java.lang.String tagName)
          Sets the tag name.
 void setType(java.lang.Class<?> cl)
          Override the old meaning of type for backward compat.
 void setValue(java.lang.Object value)
          Sets the value for old-style jndi lookup
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.cfg.BeanConfig
addBinding, addCustomBean, addInitProgram, addOptionalStringProperty, addParam, addProperty, addStringProperty, createObjectNoInit, getBeanConfigClass, getBeanManager, getBindingList, getCdiNamed, getClassType, getComponent, getFilename, getInit, getLine, getMBeanName, getName, getStereotypeList, getUri, introspectPostInit, isDefaultService, isStartup, setBeanConfigClass, setConfigLocation, setInit, setMbeanClass, setMbeanInterface, setMbeanName, setScope, setScopeType, setService, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterfaceConfig

public InterfaceConfig()

InterfaceConfig

public InterfaceConfig(java.lang.Class<?> type)

InterfaceConfig

public InterfaceConfig(java.lang.Class<?> type,
                       java.lang.String tagName)
Method Detail

getDefaultScope

protected java.lang.String getDefaultScope()
Overrides:
getDefaultScope in class BeanConfig

setType

public void setType(java.lang.Class<?> cl)
Override the old meaning of type for backward compat.

Overrides:
setType in class BeanConfig

setClass

public void setClass(java.lang.Class<?> cl)
Check for correct type.

Overrides:
setClass in class BeanConfig

setDeploy

public void setDeploy(boolean isDeploy)
Sets the default deploy value


setFactory

public void setFactory(boolean isFactory)
Sets the default factory value


setTagName

public void setTagName(java.lang.String tagName)
Sets the tag name.


getTagName

public java.lang.String getTagName()
Sets the tag name.

Overrides:
getTagName in class BeanConfig

setName

public void setName(java.lang.String name)
If the name is set, the bean will get deployed

Overrides:
setName in class BeanConfig

setJndiName

public void setJndiName(java.lang.String name)
If the name is set, the bean will get deployed

Overrides:
setJndiName in class BeanConfig

setValue

public void setValue(java.lang.Object value)
Sets the value for old-style jndi lookup


init

@PostConstruct
public void init()
Override init to handle value

Overrides:
init in class BeanConfig

deploy

public void deploy()
Overrides:
deploy in class BeanConfig

getObject

public java.lang.Object getObject()
Overrides:
getObject in class BeanConfig

getObjectNoInit

public java.lang.Object getObjectNoInit()

replaceObject

public java.lang.Object replaceObject()
Returns the configured object for configuration


replaceObjectNoInit

public java.lang.Object replaceObjectNoInit()
Returns the configured object for configuration


toString

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