org.ow2.util.ee.deploy.impl.helper
Class DeployableHelper

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.helper.DeployableHelper

public final class DeployableHelper
extends Object

Analyze an archive and build the associated Deployable object.
For an .ear file the EARDeployable object will be returned.

Author:
Florent Benoit

Method Summary
static org.ow2.util.ee.deploy.api.deployable.IDeployable<?> getDeployable(org.ow2.util.archive.api.IArchive archive)
          Gets the Deployable object for the given URL.
static org.ow2.util.ee.deploy.api.deployable.IDeployable<?> getDeployable(org.ow2.util.archive.api.IArchive archive, boolean isOSGiEnabled)
          Gets the Deployable object for the given URL.
static org.ow2.util.plan.deploy.deployable.api.factory.IFileDeployableFactory getFileDeployableFactory()
          Returns the file deployable factory.
static void setFileDeployableFactory(org.ow2.util.plan.deploy.deployable.api.factory.IFileDeployableFactory factory)
          Sets the file deployable factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeployable

public static org.ow2.util.ee.deploy.api.deployable.IDeployable<?> getDeployable(org.ow2.util.archive.api.IArchive archive)
                                                                          throws DeployableHelperException
Gets the Deployable object for the given URL.

Parameters:
archive - the given archive
Returns:
the Deployable object
Throws:
DeployableHelperException - if the analyze fails

getDeployable

public static org.ow2.util.ee.deploy.api.deployable.IDeployable<?> getDeployable(org.ow2.util.archive.api.IArchive archive,
                                                                                 boolean isOSGiEnabled)
                                                                          throws DeployableHelperException
Gets the Deployable object for the given URL.

Parameters:
archive - the given archive
isOSGiEnabled - if OSGi Deployable can be used
Returns:
the Deployable object
Throws:
DeployableHelperException - if the analyze fails

setFileDeployableFactory

public static void setFileDeployableFactory(org.ow2.util.plan.deploy.deployable.api.factory.IFileDeployableFactory factory)
Sets the file deployable factory.

Parameters:
factory - the new file deployable factory.

getFileDeployableFactory

public static org.ow2.util.plan.deploy.deployable.api.factory.IFileDeployableFactory getFileDeployableFactory()
Returns the file deployable factory.

Returns:
the file deployable factory.


Copyright © 2007-2011 OW2 Consortium. All Rights Reserved.