public final class InjectionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
callPostConstructMethod(Object instance)
Calls @PostConstruct annotated method if exists.
|
static void |
callPreDestroyMethod(Object instance)
Calls @PreDestroy annotated method if exists.
|
static void |
injectWebServiceContext(Object instance,
WebServiceContext ctx)
Injects @Resource annotated accessible objects referencing WebServiceContext.
|
public static void injectWebServiceContext(Object instance, WebServiceContext ctx)
instance
- to operate onctx
- current web service contextpublic static void callPostConstructMethod(Object instance)
instance
- to invoke @PostConstruct annotated method onPostConstructMethodFinder
,
PostConstruct
public static void callPreDestroyMethod(Object instance)
instance
- to invoke @PreDestroy annotated method onPreDestroyMethodFinder
,
PreDestroy
Copyright © 2017 JBoss, by Red Hat. All rights reserved.