|
||||||||||
| 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.SingletonClassComponent
public class SingletonClassComponent
Configuration for a singleton component.
| Field Summary |
|---|
| Fields inherited from class com.caucho.webbeans.component.ComponentImpl |
|---|
_destroyProgram, _initProgram, _injectProgram, _scope, _webbeans |
| Constructor Summary | |
|---|---|
SingletonClassComponent(WbWebBeans webbeans)
|
|
| Method Summary | |
|---|---|
void |
close()
Frees the singleton on environment shutdown |
protected java.lang.Object |
createNew(ConfigContext env)
The singleton instance is created in its original class loader context |
java.lang.Object |
get()
Returns the singleton object |
java.lang.Object |
get(ConfigContext env)
Returns the singleton object |
java.lang.Object |
getIfExists()
Returns the singleton object |
protected java.lang.Object |
init(java.lang.Object value,
ConfigContext env)
The singleton instance is initialized in its original class loader context |
| Methods inherited from class com.caucho.webbeans.component.ClassComponent |
|---|
bind, createArg, getInstanceClass, getMBeanInterface, getMBeanName, init, introspect, introspectBindings, introspectConstructor, introspectInterceptors, introspectObservers, setConstructor, setInstanceClass, setMBeanName, setNewArgs |
| Methods inherited from class com.caucho.webbeans.component.ComponentImpl |
|---|
addNameBinding, addProgram, create, createNoInit, createObject, createProgram, destroy, destroy, equals, error, getBindingList, getClassName, getHandle, getName, getScope, getScopeId, getSimpleName, getTargetClass, getTargetSimpleName, getTargetType, getType, getWebBeans, introspectScope, isDestroyPresent, isFromClass, isMatch, isMatch, isMatchByBinding, isMatchByBinding, isSingleton, setBindingList, setFromClass, setInit, setName, setScope, setTargetType, setType, toDebugString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonClassComponent(WbWebBeans webbeans)
| Method Detail |
|---|
public java.lang.Object getIfExists()
getIfExists in class ComponentImplpublic java.lang.Object get()
get in interface ComponentFactoryget in class ComponentImplpublic java.lang.Object get(ConfigContext env)
get in class ClassComponentprotected java.lang.Object createNew(ConfigContext env)
createNew in class ClassComponentenv - the configuration environment
protected java.lang.Object init(java.lang.Object value,
ConfigContext env)
init in class ComponentImplpublic void close()
close in interface java.io.Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||