public abstract class JndiHandler extends java.lang.Object implements RuntimeAnnotationHandler
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
JAVA_COMP_ENV
Stores the java:comp/env/ prefix
|
private static java.util.logging.Logger |
LOGGER
Stores the logger.
|
Constructor and Description |
---|
JndiHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
invokeMethod(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Method method,
java.lang.Object instance,
java.lang.Object value)
Invoke the method.
|
java.lang.Object |
lookup(javax.faces.context.FacesContext facesContext,
java.lang.String name)
Look up the given object using its JNDI name.
|
void |
setField(javax.faces.context.FacesContext facesContext,
java.lang.reflect.Field field,
java.lang.Object instance,
java.lang.Object value)
Set the field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
private static final java.util.logging.Logger LOGGER
protected static final java.lang.String JAVA_COMP_ENV
public java.lang.Object lookup(javax.faces.context.FacesContext facesContext, java.lang.String name)
facesContext
- the Faces context.name
- the JNDI name.public void setField(javax.faces.context.FacesContext facesContext, java.lang.reflect.Field field, java.lang.Object instance, java.lang.Object value)
facesContext
- the Faces context.field
- the field.instance
- the instance.value
- the value.protected void invokeMethod(javax.faces.context.FacesContext facesContext, java.lang.reflect.Method method, java.lang.Object instance, java.lang.Object value)
facesContext
- the Faces context.method
- the method.instance
- the instance.value
- the value.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.