org.ow2.jonas.deployer
Class DeployerManagerService

java.lang.Object
  extended by org.ow2.jonas.deployer.DeployerManagerService

public class DeployerManagerService
extends Object

This service is in fact a singleton but the deployer manager should be exposed as an OSGi service.

Author:
Florent BENOIT

Constructor Summary
DeployerManagerService()
           
 
Method Summary
static void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy a given deployable by finding the first deployer that accept this type of deployable.
static org.ow2.util.ee.deploy.api.deployer.IDeployerManager getDeployerManager()
          Init the deployer manager if there is no previous manager.
static void isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy a given deployable by finding the first deployer that accept this type of deployable.
static void register(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
          Register a new Deployer on this manager instance.
static void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Undeploy a given deployable by finding the first deployer that accept this type of deployable.
static void unregister(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
          Unregister a Deployer from this manager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployerManagerService

public DeployerManagerService()
Method Detail

register

public static void register(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
Register a new Deployer on this manager instance.

Parameters:
deployer - the deployer to register

unregister

public static void unregister(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
Unregister a Deployer from this manager instance.

Parameters:
deployer - the given deployer to unregister.

getDeployerManager

public static org.ow2.util.ee.deploy.api.deployer.IDeployerManager getDeployerManager()
Init the deployer manager if there is no previous manager.

Returns:
the deployer manager

deploy

public static void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                   throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy a given deployable by finding the first deployer that accept this type of deployable.

Parameters:
deployable - the given deployable to deploy.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.

undeploy

public static void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                     throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy a given deployable by finding the first deployer that accept this type of deployable.

Parameters:
deployable - the given deployable to undeploy.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.

isDeployed

public static void isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                       throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy a given deployable by finding the first deployer that accept this type of deployable.

Parameters:
deployable - the given deployable to deploy.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.


Copyright © 2007 OW2 Consortium. All Rights Reserved.