Represents the injection of a resource into a target (method or field). The injection is performed by doing an ENC lookup using the jndi name provided, and setting the object obtained on the target.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final Class | |
| private final Class | |
| private final Member | |
| private final Class | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Class | |
| public Class | |
| public Member | |
| public Class | |
| public void | |
| protected void | injectField(Field
the field to inject into field, Object the value to inject injectable)Inject value from jndi into a field of an instance |
| protected void | injectMethod(Method
the method to inject into method, Object the value to inject injectable)Inject value from jndi into a setter method of an instance |
| public boolean | |
| public boolean | |
| public Object | Returns: the injected valudThe Resource must already exist in the ENC of this webapp. |
| _jndiName | back to summary |
|---|---|
| private final String _jndiName | |
| _mappingName | back to summary |
|---|---|
| private final String _mappingName | |
| _paramClass | back to summary |
|---|---|
| private final Class<?> _paramClass | |
| _resourceClass | back to summary |
|---|---|
| private final Class<?> _resourceClass | |
| _target | back to summary |
|---|---|
| private final Member _target | |
| _targetClass | back to summary |
|---|---|
| private final Class<?> _targetClass | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| Injection | back to summary |
|---|---|
| public Injection(Class<?> clazz, Field field, Class<?> resourceType, String jndiName, String mappingName) | |
| Injection | back to summary |
|---|---|
| public Injection(Class<?> clazz, Method method, Class<?> arg, Class<?> resourceType, String jndiName, String mappingName) | |
| Injection | back to summary |
|---|---|
| public Injection(Class<?> clazz, String target, Class<?> resourceType, String jndiName, String mappingName) | |
| getJndiName | back to summary |
|---|---|
| public String getJndiName() Get the jndiName.
| |
| getMappingName | back to summary |
|---|---|
public String getMappingName()
| |
| getParamClass | back to summary |
|---|---|
| public Class | |
| getResourceClass | back to summary |
|---|---|
| public Class | |
| getTarget | back to summary |
|---|---|
| public Member getTarget() Get the target.
| |
| getTargetClass | back to summary |
|---|---|
public Class
| |
| inject | back to summary |
|---|---|
| public void inject(Object injectable) Inject a value for a Resource from JNDI into an object
| |
| injectField | back to summary |
|---|---|
| protected void injectField(Field field, Object injectable) Inject value from jndi into a field of an instance | |
| injectMethod | back to summary |
|---|---|
| protected void injectMethod(Method method, Object injectable) Inject value from jndi into a setter method of an instance | |
| isField | back to summary |
|---|---|
| public boolean isField() | |
| isMethod | back to summary |
|---|---|
| public boolean isMethod() | |
| lookupInjectedValue | back to summary |
|---|---|
| public Object lookupInjectedValue() throws NamingException The Resource must already exist in the ENC of this webapp.
| |