org.jboss.osgi.deployment.deployer
Class DefaultDeploymentRegistryService

java.lang.Object
  extended by org.jboss.osgi.deployment.deployer.DefaultDeploymentRegistryService
All Implemented Interfaces:
DeploymentRegistryService

public class DefaultDeploymentRegistryService
extends Object
implements DeploymentRegistryService

A Service to register/unregister bundle deployments.

Since:
27-May-2009
Author:
thomas.diesler@jboss.com

Constructor Summary
DefaultDeploymentRegistryService(org.osgi.framework.BundleContext context)
           
 
Method Summary
 Deployment getDeployment(String symbolicName, org.osgi.framework.Version version)
          Get the bundle deployment for the given bundle symbolicName and version
 Deployment getDeployment(URL url)
          Get the bundle deployment for the given bundle URL
 List<Deployment> getDeployments()
          Get the list of registered deployments.
 void registerDeployment(Deployment dep)
          Register a bundle deployment
 void unregisterDeployment(Deployment dep)
          Unregister a bundle deployment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDeploymentRegistryService

public DefaultDeploymentRegistryService(org.osgi.framework.BundleContext context)
Method Detail

getDeployments

public List<Deployment> getDeployments()
Description copied from interface: DeploymentRegistryService
Get the list of registered deployments.

Specified by:
getDeployments in interface DeploymentRegistryService
Returns:
An empty list if this service does not maintain any bundle deployments

registerDeployment

public void registerDeployment(Deployment dep)
Description copied from interface: DeploymentRegistryService
Register a bundle deployment

Specified by:
registerDeployment in interface DeploymentRegistryService

unregisterDeployment

public void unregisterDeployment(Deployment dep)
Description copied from interface: DeploymentRegistryService
Unregister a bundle deployment

Specified by:
unregisterDeployment in interface DeploymentRegistryService

getDeployment

public Deployment getDeployment(String symbolicName,
                                org.osgi.framework.Version version)
Description copied from interface: DeploymentRegistryService
Get the bundle deployment for the given bundle symbolicName and version

Specified by:
getDeployment in interface DeploymentRegistryService
Returns:
null, if this service does not maintain the bundle deployment

getDeployment

public Deployment getDeployment(URL url)
Description copied from interface: DeploymentRegistryService
Get the bundle deployment for the given bundle URL

Specified by:
getDeployment in interface DeploymentRegistryService
Returns:
null, if this service does not maintain the bundle deployment


Copyright © 2010. All Rights Reserved.