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

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<javax.enterprise.event.Event<T>>
      extended by org.apache.webbeans.component.EventBean<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<javax.enterprise.event.Event<T>>, javax.enterprise.inject.spi.Bean<javax.enterprise.event.Event<T>>, OwbBean<javax.enterprise.event.Event<T>>

public class EventBean<T>
extends AbstractOwbBean<javax.enterprise.event.Event<T>>

Implicit observable bean definition.

Version:
$Rev: 1073713 $ $Date: 2011-02-23 13:04:42 +0100 (Mi, 23 Feb 2011) $

Field Summary
static ThreadLocal<javax.enterprise.inject.spi.InjectionPoint> local
           
 
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
EventBean(WebBeansContext webBeansContext)
          Creates a new instance of event bean.
 
Method Summary
protected  javax.enterprise.event.Event<T> createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.event.Event<T>> creationalContext)
          Creates the instance of the bean that has a specific implementation type.
 boolean isPassivationCapable()
          True if passivation capable false otherwise.
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, equals, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString, validatePassivationDependencies
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

local

public static ThreadLocal<javax.enterprise.inject.spi.InjectionPoint> local
Constructor Detail

EventBean

public EventBean(WebBeansContext webBeansContext)
Creates a new instance of event bean.

Parameters:
webBeansContext -
Method Detail

createInstance

protected javax.enterprise.event.Event<T> createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.event.Event<T>> creationalContext)
Creates the instance of the bean that has a specific implementation type. Each subclass must define its own create mechanism.

Specified by:
createInstance in class AbstractOwbBean<javax.enterprise.event.Event<T>>
Parameters:
creationalContext - the contextual instance shall be created in
Returns:
instance of the bean

isPassivationCapable

public boolean isPassivationCapable()
Description copied from interface: OwbBean
True if passivation capable false otherwise.

Specified by:
isPassivationCapable in interface OwbBean<javax.enterprise.event.Event<T>>
Overrides:
isPassivationCapable in class AbstractOwbBean<javax.enterprise.event.Event<T>>
Returns:
true if this bean is passivation capable


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