org.glassfish.osgi.ee.resources
Class JMSDestinationResourceManager

java.lang.Object
  extended by org.glassfish.osgi.ee.resources.BaseResourceManager
      extended by org.glassfish.osgi.ee.resources.JMSDestinationResourceManager
All Implemented Interfaces:
ResourceManager

public class JMSDestinationResourceManager
extends BaseResourceManager
implements ResourceManager

Resource-Manager to export jms-destinations (JMS-RA admin-object-resources) in GlassFish to OSGi's service-registry

Author:
Jagadish Ramu

Field Summary
 
Fields inherited from class org.glassfish.osgi.ee.resources.BaseResourceManager
logger, resourceHelper, services
 
Constructor Summary
JMSDestinationResourceManager(org.glassfish.osgi.ee.resources.Habitat habitat)
           
 
Method Summary
 boolean handlesResource(com.sun.enterprise.config.serverbeans.BindableResource resource)
          indicates whether the resource-manager can handle the resource in question
 void registerJmsResources(org.osgi.framework.BundleContext context)
          registers the admin-object-resource in service-registry
 void registerResource(com.sun.enterprise.config.serverbeans.BindableResource resource, com.sun.enterprise.config.serverbeans.ResourceRef resRef, org.osgi.framework.BundleContext bundleContext)
          register the resource that is created or enabled
 void registerResources(org.osgi.framework.BundleContext context)
          register all appropriate resources
 
Methods inherited from class org.glassfish.osgi.ee.resources.BaseResourceManager
debug, getClassLoader, getHabitat, getProxy, getResourceHelper, getResources, registerResourceAsService, unRegisterResource, unRegisterResource, unRegisterResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.osgi.ee.resources.ResourceManager
unRegisterResource, unRegisterResources
 

Constructor Detail

JMSDestinationResourceManager

public JMSDestinationResourceManager(org.glassfish.osgi.ee.resources.Habitat habitat)
Method Detail

registerResources

public void registerResources(org.osgi.framework.BundleContext context)
register all appropriate resources

Specified by:
registerResources in interface ResourceManager
Parameters:
context - bundle-context

registerJmsResources

public void registerJmsResources(org.osgi.framework.BundleContext context)
registers the admin-object-resource in service-registry

Parameters:
context - bundle-context

registerResource

public void registerResource(com.sun.enterprise.config.serverbeans.BindableResource resource,
                             com.sun.enterprise.config.serverbeans.ResourceRef resRef,
                             org.osgi.framework.BundleContext bundleContext)
register the resource that is created or enabled

Specified by:
registerResource in interface ResourceManager
Parameters:
resource - resource that is created or enabled
resRef - resource-ref of the resource
bundleContext - bundle-context

handlesResource

public boolean handlesResource(com.sun.enterprise.config.serverbeans.BindableResource resource)
indicates whether the resource-manager can handle the resource in question

Specified by:
handlesResource in interface ResourceManager
Parameters:
resource - resource to be handled
Returns:
boolean


Copyright © 2012 GlassFish Community. All Rights Reserved.