Class ForwardingBean<T>

java.lang.Object
org.infinispan.cdi.common.util.ForwardingBean<T>
Type Parameters:
T - the class of the bean
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.BeanAttributes<T>

public abstract class ForwardingBean<T> extends Object implements javax.enterprise.inject.spi.Bean<T>
An implementation of Bean that forwards all calls to the delegate().
Author:
Pete Muir
  • Constructor Details

    • ForwardingBean

      public ForwardingBean()
  • Method Details

    • delegate

      protected abstract javax.enterprise.inject.spi.Bean<T> delegate()
      All calls to this Bean instance are forwarded to the delegate unless overridden.
      Returns:
      the delegate Bean
    • getBeanClass

      public Class<?> getBeanClass()
      Specified by:
      getBeanClass in interface javax.enterprise.inject.spi.Bean<T>
    • getInjectionPoints

      public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
      Specified by:
      getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>
    • getName

      public String getName()
      Specified by:
      getName in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Specified by:
      getQualifiers in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • getStereotypes

      public Set<Class<? extends Annotation>> getStereotypes()
      Specified by:
      getStereotypes in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • getTypes

      public Set<Type> getTypes()
      Specified by:
      getTypes in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • isAlternative

      public boolean isAlternative()
      Specified by:
      isAlternative in interface javax.enterprise.inject.spi.BeanAttributes<T>
    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface javax.enterprise.inject.spi.Bean<T>
    • create

      public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      create in interface javax.enterprise.context.spi.Contextual<T>
    • destroy

      public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      destroy in interface javax.enterprise.context.spi.Contextual<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object