org.jboss.osgi.deployment.deployer
Interface DeploymentRegistryService


public interface DeploymentRegistryService

A Service to register/unregister bundle deployments.

Since:
08-Jul-2009
Author:
thomas.diesler@jboss.com

Method Summary
 Deployment getDeployment(String symbolicName, 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
 

Method Detail

getDeployments

List<Deployment> getDeployments()
Get the list of registered deployments.

Returns:
An empty list if this service does not maintain any bundle deployments

getDeployment

Deployment getDeployment(URL url)
Get the bundle deployment for the given bundle URL

Returns:
null, if this service does not maintain the bundle deployment

getDeployment

Deployment getDeployment(String symbolicName,
                         Version version)
Get the bundle deployment for the given bundle symbolicName and version

Returns:
null, if this service does not maintain the bundle deployment

registerDeployment

void registerDeployment(Deployment dep)
Register a bundle deployment


unregisterDeployment

void unregisterDeployment(Deployment dep)
Unregister a bundle deployment



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.