Top Description Fields Constructors Methods
com.sun.faces.application.annotation

pack-priv Class EJBHandler

extends JndiHandler
implements RuntimeAnnotationHandler
Class Inheritance
All Implemented Interfaces
com.sun.faces.application.annotation.RuntimeAnnotationHandler
Imports
java.lang.reflect.Field, .Method, javax.faces.context.FacesContext, javax.ejb.EJB

RuntimeAnnotationHandler responsible for processing EJB annotations.

Field Summary

Modifier and TypeField and Description
private EJB[]
private Field[]
private static final String
private EJB[]
private Method[]
Inherited from com.sun.faces.application.annotation.JndiHandler:
JAVA_COMP_ENV

Constructor Summary

AccessConstructor and Description
public
EJBHandler(Field[] fields, EJB[] fieldAnnotations, Method[] methods, EJB[] methodAnnotations)

Method Summary

Modifier and TypeMethod and Description
public void
apply(FacesContext
the javax.faces.context.FacesContext for the current request
ctx
,
Object...
one or more arguments to the handler instance. The type and number may vary.
params
)

Implements com.sun.faces.application.annotation.RuntimeAnnotationHandler.apply.

Apply the java.lang.annotation.Annotation(s).

private void
applyToField(FacesContext facesContext, Field field, EJB ejb, Object instance)

private void
applyToMethod(FacesContext facesContext, Method method, EJB ejb, Object instance)

Inherited from com.sun.faces.application.annotation.JndiHandler:
invokeMethodlookupsetField

Field Detail

fieldAnnotationsback to summary
private EJB[] fieldAnnotations
fieldsback to summary
private Field[] fields
JAVA_MODULEback to summary
private static final String JAVA_MODULE
methodAnnotationsback to summary
private EJB[] methodAnnotations
methodsback to summary
private Method[] methods

Constructor Detail

EJBHandlerback to summary
public EJBHandler(Field[] fields, EJB[] fieldAnnotations, Method[] methods, EJB[] methodAnnotations)

Method Detail

applyback to summary
public void apply(FacesContext ctx, Object... params)

Implements com.sun.faces.application.annotation.RuntimeAnnotationHandler.apply.

Doc from com.sun.faces.application.annotation.RuntimeAnnotationHandler.apply.

Apply the java.lang.annotation.Annotation(s). The act of doing so should affect the JSF runtime in some fashion (see the spec for the specific annotation types).

Note

when adding new types of components that can be annotated, the fact that we expose varargs here should be hidden. Type-safe methods should be added to AnnotationManager to clarify the contract.

Parameters
ctx:FacesContext

the javax.faces.context.FacesContext for the current request

params:Object[]

one or more arguments to the handler instance. The type and number may vary.

Annotations
@SuppressWarnings:UnusedDeclaration
@Override
applyToFieldback to summary
private void applyToField(FacesContext facesContext, Field field, EJB ejb, Object instance)
applyToMethodback to summary
private void applyToMethod(FacesContext facesContext, Method method, EJB ejb, Object instance)