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

java.lang.Object
  extended by javax.webbeans.manager.Bean<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
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type
 
Constructor Summary
EventBean(AnnotatedItem<Event<T>,S> field, ManagerImpl manager)
          Constructor
 
Method Summary
 Event<T> create()
          Creates an instance
 void destroy(Event<T> instance)
           
protected  void init()
          Initializes the bean Calls super method and validates the annotated item
 java.lang.String toString()
          Returns a string representation
 
Methods inherited from class org.jboss.webbeans.bean.AbstractFacadeBean
getAnnotatedItem, getBindingTypesArray, getDefaultDeploymentType, getDefaultName, getTypeParameter, initDeploymentType, initScopeType, initType
 
Methods inherited from class org.jboss.webbeans.bean.AbstractBean
bindDecorators, bindInterceptors, checkDeploymentType, getBindingTypes, getDeclaredBeanType, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getSpecializedType, getType, getTypes, initApiTypes, initBindingTypes, initInjectionPoints, initName, initPrimitive, isAssignableFrom, isNullable, isPrimitive, isSerializable, toDetailedString
 
Methods inherited from class javax.webbeans.manager.Bean
getManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventBean

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

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

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()
Creates an instance

Specified by:
create in interface Contextual<Event<T>>
Specified by:
create in class Bean<Event<T>>
Returns:
an event instance

destroy

public void destroy(Event<T> instance)
Specified by:
destroy in interface Contextual<Event<T>>
Specified by:
destroy in class Bean<Event<T>>

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. All Rights Reserved.