org.jboss.osgi.spi.service
Interface DeployerService


public interface DeployerService

A Service that can be used to deploy/undeploy bundles or archives to/from the runtime.

Since:
23-Jan-2009
Author:
thomas.diesler@jboss.com

Field Summary
static javax.management.ObjectName MBEAN_DEPLOYER_SERVICE
          The object name under which this is registered: 'jboss.osgi:service=DeployerService'
 
Method Summary
 void deploy(BundleDeployment[] bundleDeps)
          Deploy an array of bundles
 void deploy(java.net.URL url)
          Deploy bundle from URL
 void undeploy(BundleDeployment[] bundleDeps)
          Undeploy an array of bundles
 boolean undeploy(java.net.URL url)
          Undeploy bundle from URL.
 

Field Detail

MBEAN_DEPLOYER_SERVICE

static final javax.management.ObjectName MBEAN_DEPLOYER_SERVICE
The object name under which this is registered: 'jboss.osgi:service=DeployerService'

Method Detail

deploy

void deploy(BundleDeployment[] bundleDeps)
            throws BundleException
Deploy an array of bundles

Throws:
BundleException

undeploy

void undeploy(BundleDeployment[] bundleDeps)
              throws BundleException
Undeploy an array of bundles

Throws:
BundleException

deploy

void deploy(java.net.URL url)
            throws BundleException
Deploy bundle from URL

Throws:
BundleException

undeploy

boolean undeploy(java.net.URL url)
                 throws BundleException
Undeploy bundle from URL. Note, due to the dynamic nature of OSGi services it is possible that a DeployerService is asked to undeploy a bundle URL which it did not deploy itself. In this case this method should return false, so that another DeployerService can be tried.

Returns:
true if this service could undeploy the bundle
Throws:
BundleException


Copyright © 2009. All Rights Reserved.