org.jboss.osgi.deployment.deployer
Interface DeployerService

All Known Implementing Classes:
AbstractDeployerService

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
 Deployment createDeployment(org.jboss.osgi.spi.util.BundleInfo info)
          Create a deployment from the given bundle info.
 Deployment createDeployment(java.net.URL url)
          Create a deployment from the given location.
 Deployment createDeployment(org.jboss.virtual.VirtualFile file)
          Create a deployment from the given file.
 void deploy(Deployment[] bundleDeps)
          Deploy an array of bundles
 void deploy(java.net.URL url)
          Deploy bundle from URL
 void undeploy(Deployment[] bundleDeps)
          Undeploy an array of bundles
 void 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

createDeployment

Deployment createDeployment(java.net.URL url)
Create a deployment from the given location.


createDeployment

Deployment createDeployment(org.jboss.virtual.VirtualFile file)
Create a deployment from the given file.


createDeployment

Deployment createDeployment(org.jboss.osgi.spi.util.BundleInfo info)
Create a deployment from the given bundle info.


deploy

void deploy(Deployment[] bundleDeps)
            throws org.osgi.framework.BundleException
Deploy an array of bundles

Throws:
org.osgi.framework.BundleException

undeploy

void undeploy(Deployment[] bundleDeps)
              throws org.osgi.framework.BundleException
Undeploy an array of bundles

Throws:
org.osgi.framework.BundleException

deploy

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

Throws:
org.osgi.framework.BundleException

undeploy

void undeploy(java.net.URL url)
              throws org.osgi.framework.BundleException
Undeploy bundle from URL.

Throws:
org.osgi.framework.BundleException


Copyright © 2009. All Rights Reserved.