Methods Summary |
---|
public void | injectClass(java.lang.Class clazz, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv)Inject the injectable resources from the given component environment
into a Class instance. Only class-level(static) fields/methods are
supported. E.g., this injection operation would be used for the
Application Client Container main class.
Any @PostConstruct methods on the class(and super-classes)
will be invoked after injection.
|
public void | injectClass(java.lang.Class clazz, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv, boolean invokePostConstruct)Inject the injectable resources from the given component environment
into a Class instance. Only class-level(static) fields/methods are
supported. E.g., this injection operation would be used for the
Application Client Container main class.
|
public void | injectInstance(java.lang.Object instance)Inject the given object instance with the resources from its
component environment. The applicable component naming environment
information will be retrieved from the current invocation context.
Any @PostConstruct methods on the instance's class(and super-classes)
will be invoked after injection.
|
public void | injectInstance(java.lang.Object instance, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv)Inject the injectable resources from the given component environment
into an object instance. The specified componentEnv must match the
environment that is associated with the component on top of the
invocation stack at the time this method is invoked.
Any @PostConstruct methods on the instance's class(and super-classes)
will be invoked after injection.
|
public void | injectInstance(java.lang.Object instance, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv, boolean invokePostConstruct)Inject the injectable resources from the given component environment
into an object instance. The specified componentEnv must match the
environment that is associated with the component on top of the
invocation stack at the time this method is invoked.
|
public void | invokeClassPreDestroy(java.lang.Class clazz, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv)Invoke any static @PreDestroy methods defined on the class
(and super-classes). The specified componentEnv must match the
environment that is associated with the component on top of the
invocation stack at the time this method is invoked.
|
public void | invokeInstancePreDestroy(java.lang.Object instance)Invoke any @PreDestroy methods defined on the instance's class
(and super-classes). Invocation information will be retrieved from
the current component invocation context.
|
public void | invokeInstancePreDestroy(java.lang.Object instance, com.sun.enterprise.deployment.JndiNameEnvironment componentEnv)Invoke any @PreDestroy methods defined on the instance's class
(and super-classes). The specified componentEnv must match the
environment that is associated with the component on top of the
invocation stack at the time this method is invoked.
|