| java.lang.Object org.mortbay.jetty.plus.annotation.Injection
Injection | public class Injection (Code) | | Injection
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.
|
Injection | public Injection()(Code) | | |
getClassName | public String getClassName()(Code) | | the _className |
getMappingName | public String getMappingName()(Code) | | the mappingName |
inject | public void inject(Object injectable) throws Exception(Code) | | Inject a value for a Resource from JNDI into an object
Parameters: injectable - throws: Exception - |
injectField | public void injectField(Field field, Object injectable) throws Exception(Code) | | Inject value from jndi into a field of an instance
Parameters: field - Parameters: injectable - throws: Exception - |
injectMethod | public void injectMethod(Method method, Object injectable) throws Exception(Code) | | Inject value from jndi into a setter method of an instance
Parameters: method - Parameters: injectable - throws: Exception - |
lookupInjectedValue | public Object lookupInjectedValue() throws Exception(Code) | | The Resource must already exist in the ENC of this webapp.
throws: Exception - |
setClassName | public void setClassName(String name)(Code) | | Parameters: name - the _className to set |
setJndiName | public void setJndiName(String jndiName)(Code) | | Parameters: jndiName - the jndiName to set |
setMappingName | public void setMappingName(String mappingName)(Code) | | Parameters: mappingName - the mappingName to set |
setTarget | public void setTarget(Member target)(Code) | | Parameters: target - the target to set |
|
|