class ResourceHandler extends JndiHandler
RuntimeAnnotationHandler
responsible for processing Resource
annotations.Modifier and Type | Field and Description |
---|---|
private javax.annotation.Resource[] |
fieldAnnotations |
private java.lang.reflect.Field[] |
fields |
private javax.annotation.Resource[] |
methodAnnotations |
private java.lang.reflect.Method[] |
methods |
JAVA_COMP_ENV
Constructor and Description |
---|
ResourceHandler(java.lang.reflect.Field[] fields,
javax.annotation.Resource[] fieldAnnotations,
java.lang.reflect.Method[] methods,
javax.annotation.Resource[] methodAnnotations) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.context.FacesContext ctx,
java.lang.Object... params) |
private void |
applyToField(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Field field,
javax.annotation.Resource resource,
java.lang.Object instance) |
private void |
applyToMethod(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Method method,
javax.annotation.Resource resource,
java.lang.Object instance) |
invokeMethod, lookup, setField
private java.lang.reflect.Field[] fields
private javax.annotation.Resource[] fieldAnnotations
private java.lang.reflect.Method[] methods
private javax.annotation.Resource[] methodAnnotations
public ResourceHandler(java.lang.reflect.Field[] fields, javax.annotation.Resource[] fieldAnnotations, java.lang.reflect.Method[] methods, javax.annotation.Resource[] methodAnnotations)
public void apply(javax.faces.context.FacesContext ctx, java.lang.Object... params)
private void applyToField(javax.faces.context.FacesContext facesContext, java.lang.reflect.Field field, javax.annotation.Resource resource, java.lang.Object instance)
private void applyToMethod(javax.faces.context.FacesContext facesContext, java.lang.reflect.Method method, javax.annotation.Resource resource, java.lang.Object instance)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.