com.caucho.webbeans.component
Class ObjectProxyComponent

java.lang.Object
  extended by com.caucho.webbeans.component.ComponentImpl
      extended by com.caucho.webbeans.component.ObjectProxyComponent
All Implemented Interfaces:
ObjectProxy, ComponentFactory

public class ObjectProxyComponent
extends ComponentImpl

Component for a singleton beans


Field Summary
 
Fields inherited from class com.caucho.webbeans.component.ComponentImpl
_destroyProgram, _initProgram, _injectProgram, _scope, _webbeans
 
Constructor Summary
ObjectProxyComponent(WebBeansContainer webBeans, ObjectProxy proxy, java.lang.Class type)
           
 
Method Summary
 java.lang.Object create()
          Creates a new instance of the component.
protected  java.lang.Object createNew()
           
 java.lang.Object get()
          Returns the component object, creating if necessary
 java.lang.Object get(ConfigContext env)
           
 void setScope(ScopeContext scope)
          Sets the scope annotation.
 
Methods inherited from class com.caucho.webbeans.component.ComponentImpl
addNameBinding, addProgram, bind, createNew, createNoInit, createObject, createProgram, destroy, destroy, equals, error, getBindingList, getClassName, getHandle, getIfExists, getName, getScope, getScopeId, getSimpleName, getTargetClass, getTargetSimpleName, getTargetType, getType, getWebBeans, init, init, introspect, introspectBindings, 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

ObjectProxyComponent

public ObjectProxyComponent(WebBeansContainer webBeans,
                            ObjectProxy proxy,
                            java.lang.Class type)
Method Detail

setScope

public void setScope(ScopeContext scope)
Description copied from class: ComponentImpl
Sets the scope annotation.

Overrides:
setScope in class ComponentImpl

get

public java.lang.Object get()
Description copied from class: ComponentImpl
Returns the component object, creating if necessary

Specified by:
get in interface ComponentFactory
Overrides:
get in class ComponentImpl

get

public java.lang.Object get(ConfigContext env)
Overrides:
get in class ComponentImpl

create

public java.lang.Object create()
Description copied from class: ComponentImpl
Creates a new instance of the component.

Specified by:
create in interface ComponentFactory
Overrides:
create in class ComponentImpl

createNew

protected java.lang.Object createNew()