org.glassfish.javaee.services
Class ApplicationScopedResourcesManager

java.lang.Object
  extended by org.glassfish.javaee.services.ApplicationScopedResourcesManager
All Implemented Interfaces:
PostStartup, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy, org.jvnet.hk2.config.ConfigListener

@Scoped(value=org.jvnet.hk2.component.Singleton.class)
@Service(name="ApplicationScopedResourcesManager")
public class ApplicationScopedResourcesManager
extends Object
implements PostStartup, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy, org.jvnet.hk2.config.ConfigListener

Resource manager to bind various application or module scoped resources during startup, create/update/delete of resource/pool

Author:
Jagadish Ramu

Constructor Summary
ApplicationScopedResourcesManager()
           
 
Method Summary
 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)
           
 Resources getResources(String applicationName)
           
 boolean isConnectorRuntimeInitialized()
          Check whether connector-runtime is initialized.
 void postConstruct()
           
 void preDestroy()
          Do cleanup of system-resource-adapter, resources, pools
 void undeployResources(Collection<Resource> resources)
           
 void undeployResources(Resources resources)
          undeploy the given set of resources
resources (bindable) are removed first and then the pools
 void undeployResources(String applicationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationScopedResourcesManager

public ApplicationScopedResourcesManager()
Method Detail

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

getResources

public Resources getResources(String applicationName)

deployResources

public void deployResources(String applicationName)

deployResources

public void deployResources(Collection<Resource> resources)
deploy resources

Parameters:
resources - list

isConnectorRuntimeInitialized

public boolean isConnectorRuntimeInitialized()
Check whether connector-runtime is initialized.

Returns:
boolean representing connector-runtime initialization status.

preDestroy

public void preDestroy()
Do cleanup of system-resource-adapter, resources, pools

Specified by:
preDestroy in interface org.jvnet.hk2.component.PreDestroy

undeployResources

public void undeployResources(String applicationName)

undeployResources

public void undeployResources(Collection<Resource> resources)

undeployResources

public void undeployResources(Resources resources)
undeploy the given set of resources
resources (bindable) are removed first and then the pools

Parameters:
resources - list of resources

changed

public org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changed

Specified by:
changed in interface org.jvnet.hk2.config.ConfigListener
Parameters:
events - list of changes


Copyright © 2012 GlassFish Community. All Rights Reserved.