|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.webbeans.component.ComponentImpl
com.caucho.webbeans.component.ClassComponent
com.caucho.webbeans.component.SingletonComponent
public class SingletonComponent
Component for a singleton beans
| Field Summary |
|---|
| Fields inherited from class com.caucho.webbeans.component.ComponentImpl |
|---|
_destroyProgram, _initProgram, _injectProgram, _scope, _webbeans |
| Constructor Summary | |
|---|---|
SingletonComponent(WbWebBeans webBeans,
java.lang.Object value)
|
|
SingletonComponent(WebBeansContainer webBeans,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
void |
bind()
Binds parameters |
void |
close()
Frees the singleton on environment shutdown |
java.lang.Object |
create()
Creates a new instance of the component. |
protected java.lang.Object |
createNew(ConfigContext env)
Creates a new instance of the component |
java.lang.Object |
get()
Returns the component object, creating if necessary |
java.lang.Object |
get(ConfigContext env)
Creates a new instance of the component. |
void |
init()
Complete initialization |
void |
introspectConstructor()
Introspects the constructor |
void |
setScope(ScopeContext scope)
Sets the scope annotation. |
| Methods inherited from class com.caucho.webbeans.component.ClassComponent |
|---|
createArg, getInstanceClass, getMBeanInterface, getMBeanName, introspect, introspectBindings, introspectInterceptors, introspectObservers, setConstructor, setInstanceClass, setMBeanName, setNewArgs |
| Methods inherited from class com.caucho.webbeans.component.ComponentImpl |
|---|
addNameBinding, addProgram, createNoInit, createObject, createProgram, destroy, destroy, equals, error, getBindingList, getClassName, getHandle, getIfExists, getName, getScope, getScopeId, getSimpleName, getTargetClass, getTargetSimpleName, getTargetType, getType, getWebBeans, init, introspectScope, isDestroyPresent, isFromClass, isMatch, isMatch, isMatchByBinding, isMatchByBinding, isSingleton, setBindingList, setFromClass, setInit, setName, setTargetType, setType, toDebugString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonComponent(WbWebBeans webBeans,
java.lang.Object value)
public SingletonComponent(WebBeansContainer webBeans,
java.lang.Object value)
| Method Detail |
|---|
public void bind()
ClassComponent
bind in class ClassComponentpublic void introspectConstructor()
ClassComponent
introspectConstructor in class ClassComponentpublic void init()
init in class ClassComponentpublic void setScope(ScopeContext scope)
ComponentImpl
setScope in class ComponentImplpublic java.lang.Object get()
ComponentImpl
get in interface ComponentFactoryget in class ComponentImplpublic java.lang.Object get(ConfigContext env)
ClassComponent
get in class ClassComponentpublic java.lang.Object create()
ComponentImpl
create in interface ComponentFactorycreate in class ComponentImplprotected java.lang.Object createNew(ConfigContext env)
ComponentImpl
createNew in class ClassComponentenv - the configuration environment
public void close()
close in interface java.io.Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||