org.apache.webbeans.inject
Class InjectableMethods<T>

java.lang.Object
  extended by org.apache.webbeans.inject.AbstractInjectable
      extended by org.apache.webbeans.inject.InjectableMethods<T>
All Implemented Interfaces:
Injectable

public class InjectableMethods<T>
extends AbstractInjectable


Field Summary
protected  Object instance
          Bean parent instance that owns the method
protected  Method method
          Injectable method
 
Fields inherited from class org.apache.webbeans.inject.AbstractInjectable
dependentInstanceOfProducerMethods, injectionMember, injectionOwnerBean, injectionOwnerCreationalContext, instanceUnderInjection
 
Constructor Summary
InjectableMethods(Method m, Object instance, OwbBean<?> owner, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Constructs new instance.
 
Method Summary
 T doInjection()
          Responsible for injecting the owner required injected component instances.
 Map<javax.enterprise.inject.spi.Bean<?>,Object> getDependentBeanParameters()
           
 void setDisposable(boolean disposable)
           
 void setProducerMethodInstance(Object instance)
           
 
Methods inherited from class org.apache.webbeans.inject.AbstractInjectable
getInjectedPoints, getInjectionOwnerComponent, inject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected Method method
Injectable method


instance

protected Object instance
Bean parent instance that owns the method

Constructor Detail

InjectableMethods

public InjectableMethods(Method m,
                         Object instance,
                         OwbBean<?> owner,
                         javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Constructs new instance.

Parameters:
m - injectable method
instance - component instance
Method Detail

doInjection

public T doInjection()
Description copied from interface: Injectable
Responsible for injecting the owner required injected component instances. Maybe returning an component instance, for example, InjectableConstructor.doInjection() returns a new web bean component instance.

Each injetable elements parameters, web beans component instances, are resolved using the resolution type algorithm.

Returns:
if the return instance if available

getDependentBeanParameters

public Map<javax.enterprise.inject.spi.Bean<?>,Object> getDependentBeanParameters()

setDisposable

public void setDisposable(boolean disposable)
Parameters:
disposable - the disposable to set

setProducerMethodInstance

public void setProducerMethodInstance(Object instance)


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.