javax.enterprise.inject.spi
Interface Bean<T>

All Superinterfaces:
Contextual<T>
All Known Subinterfaces:
Decorator<T>, Interceptor<T>

public interface Bean<T>
extends Contextual<T>


Method Summary
 java.lang.Class<?> getBeanClass()
          The bean class of the managed bean or session bean or of the bean that declares the producer method or field
 java.util.Set<InjectionPoint> getInjectionPoints()
          The injection points of a bean
 java.lang.String getName()
          The name of a bean
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          The bindings of a bean
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          The scope of a bean
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
          The stereotypes applied to this bean
 java.util.Set<java.lang.reflect.Type> getTypes()
          The client-visible types of a bean
 boolean isAlternative()
          Test to see if the bean is a policy
 boolean isNullable()
          The nullability of a bean
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

getTypes

java.util.Set<java.lang.reflect.Type> getTypes()
The client-visible types of a bean

Returns:
the bean types

getQualifiers

java.util.Set<java.lang.annotation.Annotation> getQualifiers()
The bindings of a bean

Returns:
the bindings

getScope

java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
The scope of a bean

Returns:
the scope

getName

java.lang.String getName()
The name of a bean

Returns:
the name

getStereotypes

java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
The stereotypes applied to this bean

Returns:
stereotypes if any

getBeanClass

java.lang.Class<?> getBeanClass()
The bean class of the managed bean or session bean or of the bean that declares the producer method or field

Returns:
the class of the managed bean

isAlternative

boolean isAlternative()
Test to see if the bean is a policy

Returns:
true if the bean is a policy

isNullable

boolean isNullable()
The nullability of a bean

Returns:
true if the bean is nullable

getInjectionPoints

java.util.Set<InjectionPoint> getInjectionPoints()
The injection points of a bean

Returns:
the injection points of a bean


Copyright © 2008-2009 Seam Framework. All Rights Reserved.