IT. Expert System.

Java Enterprise Edition (EE)

Bean


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

Type Parameters:
T - the class of the bean instance
All Superinterfaces:
Contextual<T>
All Known Subinterfaces:
Decorator<T>, Interceptor<T>
public interface Bean<T>
extends Contextual<T>

Represents an enabled bean. This interface defines everything the container needs to manage instances of the bean.

Author:
Gavin King, David Allen

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()
          Obtains the InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.
 java.lang.String getName()
          Obtains the EL name of a bean, if it has one.
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Obtains the qualifiers of the bean.
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Obtains the scope of the bean.
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
          Obtains the stereotypes of the bean.
 java.util.Set<java.lang.reflect.Type> getTypes()
          Obtains the bean types of the bean.
 boolean isAlternative()
          Determines if the bean is an alternative.
 boolean isNullable()
          Determines if Contextual.create(CreationalContext) sometimes return a null value.
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

getTypes

java.util.Set<java.lang.reflect.Type> getTypes()
Obtains the bean types of the bean.

Returns:
the bean types

getQualifiers

java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Obtains the qualifiers of the bean.

Returns:
the qualifiers

getScope

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

Returns:
the scope

getName

java.lang.String getName()
Obtains the EL name of a bean, if it has one.

Returns:
the EL name

getStereotypes

java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Obtains the stereotypes of the bean.

Returns:
the set of stereotypes

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 bean class

isAlternative

boolean isAlternative()
Determines if the bean is an alternative.

Returns:
true if the bean is an alternative, and false otherwise.

isNullable

boolean isNullable()
Determines if Contextual.create(CreationalContext) sometimes return a null value.

Returns:
true if the create() method may return a null value, and false otherwise

getInjectionPoints

java.util.Set<InjectionPoint> getInjectionPoints()
Obtains the InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.

Returns:
the set of injection points of the bean


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2797 / . Delta: 0.03606 с