org.apache.webbeans.portable.events.generics
Class GProcessBean

java.lang.Object
  extended by org.apache.webbeans.portable.events.ProcessBeanImpl
      extended by org.apache.webbeans.portable.events.generics.GProcessBean
All Implemented Interfaces:
javax.enterprise.inject.spi.ProcessBean, GenericBeanEvent

public class GProcessBean
extends ProcessBeanImpl
implements GenericBeanEvent


Constructor Summary
GProcessBean(javax.enterprise.inject.spi.Bean<?> bean, javax.enterprise.inject.spi.AnnotatedType<?> annotated)
           
 
Method Summary
 Class<?> getBeanClassFor(Class<?> eventClass)
          If this is a Foo event and we are considering it as a Bar event, returns the generic type of Foo as a Bar.
 
Methods inherited from class org.apache.webbeans.portable.events.ProcessBeanImpl
addDefinitionError, getAnnotated, getBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GProcessBean

public GProcessBean(javax.enterprise.inject.spi.Bean<?> bean,
                    javax.enterprise.inject.spi.AnnotatedType<?> annotated)
Method Detail

getBeanClassFor

public Class<?> getBeanClassFor(Class<?> eventClass)
Description copied from interface: GenericBeanEvent
If this is a Foo event and we are considering it as a Bar event, returns the generic type of Foo as a Bar. Normally this is X, but in at least one case (ProcessSessionBean) the generic type is different.

Specified by:
getBeanClassFor in interface GenericBeanEvent
Parameters:
eventClass - the class of event we are treating this event as
Returns:
the generic type parameter of this event considered as an "eventClass"


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