@RunLevel(value=20,
mode=0)
@Service(name="ApplicationScopedResourcesManager")
public class ApplicationScopedResourcesManager
extends Object
implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, org.jvnet.hk2.config.ConfigListener
| Constructor and Description |
|---|
ApplicationScopedResourcesManager() |
| 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
|
void |
deployResources(String applicationName)
Deploys resources with a specified application
|
Resources |
getResources(String applicationName)
Gets all
Resources that are part of an application |
void |
postConstruct() |
void |
preDestroy()
Do cleanup of system-resource-adapter, resources, pools
|
void |
undeployResources(Resources resources)
undeploy the given set of resources
resources (bindable) are removed first and then the pools |
void |
undeployResources(String applicationName)
Undeploy all resources associated with a given application
|
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic Resources getResources(String applicationName)
Resources that are part of an applicationapplicationName - public void deployResources(String applicationName)
applicationName - deployResources(Collection)public void deployResources(Collection<Resource> resources)
resources - listpublic void preDestroy()
preDestroy in interface org.glassfish.hk2.api.PreDestroypublic void undeployResources(String applicationName)
applicationName - public void undeployResources(Resources 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.