org.jboss.webbeans.bean
Class EventBean<T,S>

java.lang.Object
  extended by javax.inject.manager.Bean<T>
      extended by org.jboss.webbeans.bean.RIBean<T>
          extended by org.jboss.webbeans.bean.AbstractBean<T,S>
              extended by org.jboss.webbeans.bean.AbstractFacadeBean<Event<T>,S,T>
                  extended by org.jboss.webbeans.bean.EventBean<T,S>
Type Parameters:
T -
S -
All Implemented Interfaces:
Contextual<Event<T>>

public class EventBean<T,S>
extends AbstractFacadeBean<Event<T>,S,T>

An event bean representation

Author:
David Allen

Field Summary
 
Fields inherited from class org.jboss.webbeans.bean.AbstractFacadeBean
annotatedItem
 
Fields inherited from class org.jboss.webbeans.bean.AbstractBean
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types
 
Constructor Summary
protected EventBean(AnnotatedItem<Event<T>,S> field, ManagerImpl manager)
          Constructor
 
Method Summary
 Event<T> create(CreationalContext<Event<T>> creationalContext)
          Creates an instance
 void destroy(Event<T> instance)
           
protected  void init()
          Initializes the bean Calls super method and validates the annotated item
static
<T,S> EventBean<T,S>
of(AnnotatedItem<Event<T>,S> field, ManagerImpl manager)
          Creates an event Web Bean
 java.lang.String toString()
          Returns a string representation
 
Methods inherited from class org.jboss.webbeans.bean.AbstractFacadeBean
checkDeploymentType, getAnnotatedItem, getBindingTypesArray, getDefaultDeploymentType, getDefaultName, getSpecializedBean, getTypeParameter, initDeploymentType, initScopeType, initType, isSpecializing
 
Methods inherited from class org.jboss.webbeans.bean.AbstractBean
bindDecorators, bindInterceptors, checkInjectionPointsAreSerializable, checkRequiredTypesImplemented, equals, getBindings, getDependentInstancesStore, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getType, getTypes, hashCode, initBindingTypes, initDefaultBindings, initDeploymentTypeFromStereotype, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initSpecialization, initTypes, isAssignableFrom, isDependent, isNullable, isPrimitive, isProxyable, isSerializable, postSpecialization, preCheckSpecialization
 
Methods inherited from class org.jboss.webbeans.bean.RIBean
getManager
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventBean

protected EventBean(AnnotatedItem<Event<T>,S> field,
                    ManagerImpl manager)
Constructor

Parameters:
field - The underlying field abstraction
manager - The Web Beans manager
Method Detail

of

public static <T,S> EventBean<T,S> of(AnnotatedItem<Event<T>,S> field,
                                      ManagerImpl manager)
Creates an event Web Bean

Parameters:
field - The event injection point abstraction
manager - the current manager
declaringBean - The declaring bean abstraction
Returns:
An event Web Bean

init

protected void init()
Initializes the bean Calls super method and validates the annotated item

Overrides:
init in class AbstractBean<Event<T>,S>

create

public Event<T> create(CreationalContext<Event<T>> creationalContext)
Creates an instance

Returns:
an event instance

destroy

public void destroy(Event<T> instance)

toString

public java.lang.String toString()
Returns a string representation

Overrides:
toString in class AbstractFacadeBean<Event<T>,S,T>
Returns:
The string representation


Copyright © 2008-2009. All Rights Reserved.