class EJBHandler extends JndiHandler implements RuntimeAnnotationHandler
RuntimeAnnotationHandler
responsible for processing EJB annotations.Modifier and Type | Field and Description |
---|---|
private javax.ejb.EJB[] |
fieldAnnotations |
private java.lang.reflect.Field[] |
fields |
private static java.lang.String |
JAVA_MODULE |
private javax.ejb.EJB[] |
methodAnnotations |
private java.lang.reflect.Method[] |
methods |
JAVA_COMP_ENV
Constructor and Description |
---|
EJBHandler(java.lang.reflect.Field[] fields,
javax.ejb.EJB[] fieldAnnotations,
java.lang.reflect.Method[] methods,
javax.ejb.EJB[] methodAnnotations) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.context.FacesContext ctx,
java.lang.Object... params)
Apply the
Annotation (s). |
private void |
applyToField(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Field field,
javax.ejb.EJB ejb,
java.lang.Object instance) |
private void |
applyToMethod(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Method method,
javax.ejb.EJB ejb,
java.lang.Object instance) |
invokeMethod, lookup, setField
private static final java.lang.String JAVA_MODULE
private java.lang.reflect.Field[] fields
private javax.ejb.EJB[] fieldAnnotations
private java.lang.reflect.Method[] methods
private javax.ejb.EJB[] methodAnnotations
public EJBHandler(java.lang.reflect.Field[] fields, javax.ejb.EJB[] fieldAnnotations, java.lang.reflect.Method[] methods, javax.ejb.EJB[] methodAnnotations)
public void apply(javax.faces.context.FacesContext ctx, java.lang.Object... params)
RuntimeAnnotationHandler
Apply the 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.
apply
in interface RuntimeAnnotationHandler
ctx
- the FacesContext
for the current
requestparams
- one or more arguments to the handler instance. The type
and number may vary.private void applyToField(javax.faces.context.FacesContext facesContext, java.lang.reflect.Field field, javax.ejb.EJB ejb, java.lang.Object instance)
private void applyToMethod(javax.faces.context.FacesContext facesContext, java.lang.reflect.Method method, javax.ejb.EJB ejb, java.lang.Object instance)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.