@RunLevel(value=2,
mode=0)
@Service(name="ResourceManager")
public class ResourceManager
extends Object
implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, org.jvnet.hk2.config.ConfigListener
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGER |
static String |
LOGMESSAGE_RESOURCE |
| Constructor and Description |
|---|
ResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
org.jvnet.hk2.config.UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changed
|
void |
deployResources(Collection<Resource> resources)
deploy resources
|
Resources |
getAllResources() |
void |
postConstruct() |
void |
preDestroy()
Do cleanup of system-resource-adapter, resources, pools
|
void |
undeployResources(Collection<Resource> resources)
undeploy the given set of resources
care has to be taken for the case of dependent resources eg : all resources need to be undeployed before undeploying the pool that they refer to |
public static final String LOGMESSAGE_RESOURCE
public static final String LOGGER
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic void deployResources(Collection<Resource> resources)
resources - listpublic Resources getAllResources()
public void preDestroy()
preDestroy in interface org.glassfish.hk2.api.PreDestroypublic void undeployResources(Collection<Resource> resources)
resources - list of resourcespublic org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
changed in interface org.jvnet.hk2.config.ConfigListenerevents - list of changesCopyright © 2017. All rights reserved.