org.apache.webbeans.component
Class ExtensionBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.component.AbstractInjectionTargetBean<T>
          extended by org.apache.webbeans.component.ExtensionBean<T>
Type Parameters:
T - type info
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, InjectionTargetBean<T>, OwbBean<T>

public class ExtensionBean<T>
extends AbstractInjectionTargetBean<T>

Extension service bean definition.

Version:
$Rev: 1061122 $ $Date: 2011-01-20 05:46:59 +0100 (Do, 20 Jan 2011) $

Field Summary
 
Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
decorators, inheritedMetaData, interceptorStack
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
ExtensionBean(Class<T> returnType, WebBeansContext webBeansContext)
          Creates a new extesion bean.
 
Method Summary
protected  T createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          Sub-classes must override this method to create bean instance.
protected  void destroyComponentInstance(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          Sub-classes must override this method to destroy bean instance.
 
Methods inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createDefaultInstance, createInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInjectionPoints, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependencies
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isPassivationCapable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.webbeans.component.OwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isPassivationCapable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Constructor Detail

ExtensionBean

public ExtensionBean(Class<T> returnType,
                     WebBeansContext webBeansContext)
Creates a new extesion bean.

Parameters:
returnType - return type
webBeansContext -
Method Detail

createComponentInstance

protected T createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Sub-classes must override this method to create bean instance.

Overrides:
createComponentInstance in class AbstractInjectionTargetBean<T>
Parameters:
creationalContext - creational context
Returns:
bean instance

destroyComponentInstance

protected void destroyComponentInstance(T instance,
                                        javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Sub-classes must override this method to destroy bean instance.

Overrides:
destroyComponentInstance in class AbstractInjectionTargetBean<T>
Parameters:
instance - object instance.


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