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 IDeployable<?> getDeployable(IArchive archive)
          Gets the Deployable object for the given URL.
static IDeployable<?> getDeployable(IArchive archive, boolean isOSGiEnabled)
          Gets the Deployable object for the given URL.
static IFileDeployableFactory getFileDeployableFactory()
          Returns the file deployable factory.
static void setFileDeployableFactory(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 IDeployable<?> getDeployable(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
DeployableHelperException

getDeployable

public static IDeployable<?> getDeployable(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
DeployableHelperException

setFileDeployableFactory

public static void setFileDeployableFactory(IFileDeployableFactory factory)
Sets the file deployable factory.

Parameters:
factory - the new file deployable factory.

getFileDeployableFactory

public static IFileDeployableFactory getFileDeployableFactory()
Returns the file deployable factory.

Returns:
the file deployable factory.


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