com.caucho.webbeans.component
Class ProducesComponent

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

public class ProducesComponent
extends ComponentImpl

Configuration for a @Produces method


Field Summary
 
Fields inherited from class com.caucho.webbeans.component.ComponentImpl
_destroyProgram, _initProgram, _injectProgram, _scope, _webbeans
 
Constructor Summary
ProducesComponent(WbWebBeans webbeans, ComponentImpl producer, java.lang.reflect.Method method)
           
 
Method Summary
 void bind()
          Binds parameters
 java.lang.Object createNew(ConfigContext env)
          Creates a new instance of the component
 void init()
          Initialization.
 void introspect()
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.webbeans.component.ComponentImpl
addNameBinding, addProgram, create, createNoInit, createObject, createProgram, destroy, destroy, equals, error, get, get, getBindingList, getClassName, getHandle, getIfExists, getName, getScope, getScopeId, getSimpleName, getTargetClass, getTargetSimpleName, getTargetType, getType, getWebBeans, init, introspectBindings, introspectScope, isDestroyPresent, isFromClass, isMatch, isMatch, isMatchByBinding, isMatchByBinding, isSingleton, setBindingList, setFromClass, setInit, setName, setScope, setTargetType, setType, toDebugString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProducesComponent

public ProducesComponent(WbWebBeans webbeans,
                         ComponentImpl producer,
                         java.lang.reflect.Method method)
Method Detail

init

public void init()
Initialization.

Overrides:
init in class ComponentImpl

introspect

public void introspect()
Overrides:
introspect in class ComponentImpl

createNew

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

Overrides:
createNew in class ComponentImpl
Parameters:
env - the configuration environment
Returns:
the new object

bind

public void bind()
Description copied from class: ComponentImpl
Binds parameters

Overrides:
bind in class ComponentImpl

toString

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