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

java.lang.Object
  extended by org.apache.webbeans.portable.events.ProcessBeanImpl<Object>
      extended by org.apache.webbeans.portable.events.ProcessSessionBeanImpl
          extended by org.apache.webbeans.portable.events.generics.GProcessSessionBean
All Implemented Interfaces:
javax.enterprise.inject.spi.ProcessBean, javax.enterprise.inject.spi.ProcessManagedBean, javax.enterprise.inject.spi.ProcessSessionBean, GenericBeanEvent

public class GProcessSessionBean
extends ProcessSessionBeanImpl
implements GenericBeanEvent


Constructor Summary
GProcessSessionBean(javax.enterprise.inject.spi.Bean<Object> bean, javax.enterprise.inject.spi.AnnotatedType<?> annotatedType, String name, javax.enterprise.inject.spi.SessionBeanType type)
           
 
Method Summary
 Class<?> getBeanClassFor(Class<?> eventClass)
          This is an exceptional case due to the definition ProcessSessionBean extends ProcessManagedBean If we are thinking of this event as a ProcessSessionBean then the bean class is X but if we are thinking of it as a ProcessManagedBean or superclass then the bean class is Object.
 
Methods inherited from class org.apache.webbeans.portable.events.ProcessSessionBeanImpl
getAnnotatedBeanClass, getEjbName, getSessionBeanType
 
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
 
Methods inherited from interface javax.enterprise.inject.spi.ProcessBean
addDefinitionError, getAnnotated, getBean
 

Constructor Detail

GProcessSessionBean

public GProcessSessionBean(javax.enterprise.inject.spi.Bean<Object> bean,
                           javax.enterprise.inject.spi.AnnotatedType<?> annotatedType,
                           String name,
                           javax.enterprise.inject.spi.SessionBeanType type)
Method Detail

getBeanClassFor

public Class<?> getBeanClassFor(Class<?> eventClass)
This is an exceptional case due to the definition ProcessSessionBean extends ProcessManagedBean If we are thinking of this event as a ProcessSessionBean then the bean class is X but if we are thinking of it as a ProcessManagedBean or superclass then the bean class is Object. See https://issues.jboss.org/browse/CDITCK-215

Specified by:
getBeanClassFor in interface GenericBeanEvent
Parameters:
eventClass - the class of event we are treating this event as
Returns:
X.class or Object.class


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