|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wsf.common.injection.InjectionHelper
public final class InjectionHelper
An injection helper class for javax.* annotations.
Method Summary | |
---|---|
static void |
callPostConstructMethod(java.lang.Object instance)
Calls @PostConstruct annotated method if exists. |
static void |
callPreDestroyMethod(java.lang.Object instance)
Calls @PreDestroy annotated method if exists. |
static void |
injectResources(java.lang.Object instance,
org.jboss.wsf.spi.metadata.injection.InjectionsMetaData injections)
The resource annotations mark resources that are needed by the application. |
static void |
injectWebServiceContext(java.lang.Object instance,
javax.xml.ws.WebServiceContext ctx)
Injects @Resource annotated accessible objects referencing WebServiceContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void injectResources(java.lang.Object instance, org.jboss.wsf.spi.metadata.injection.InjectionsMetaData injections)
instance
- to inject resources oninjections
- injection metadataInjectionsMetaData
,
Resource
,
EJB
public static void injectWebServiceContext(java.lang.Object instance, javax.xml.ws.WebServiceContext ctx)
instance
- to operate onctx
- current web service contextpublic static void callPostConstructMethod(java.lang.Object instance)
instance
- to invoke @PostConstruct annotated method onPostConstructMethodFinder
,
PostConstruct
public static void callPreDestroyMethod(java.lang.Object instance)
instance
- to invoke @PreDestroy annotated method onPreDestroyMethodFinder
,
PreDestroy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |