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

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

public final class UnpackDeployableHelper
extends java.lang.Object

Allow to unpack a deployable and build a deployable for this type.

Author:
Florent BENOIT

Field Summary
static java.lang.String DEFAULT_FOLDER
          Folder to create in tmp folder.
 
Method Summary
static
<T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>>
T
unpack(T deployable)
          Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it.
static
<T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>>
T
unpack(T deployable, java.io.File unpackedFolder)
          Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it.
static
<T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>>
T
unpack(T deployable, java.io.File folder, java.lang.String archiveName)
          Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it.
static
<T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>>
T
unpack(T deployable, java.lang.String pattern)
          Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FOLDER

public static final java.lang.String DEFAULT_FOLDER
Folder to create in tmp folder.

See Also:
Constant Field Values
Method Detail

unpack

public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable)
                                                                             throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it.

Type Parameters:
T - an object implementing IDeployable
Parameters:
deployable - the archive to unpack.
Returns:
a new deployable (which is unpacked)
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked

unpack

public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
                                                                                        java.lang.String pattern)
                                                                             throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Unpack the given archive in a temp folder, then build a local deployable (and fill it with submodules for EAR) and then return it.

Type Parameters:
T - an object implementing IDeployable
Parameters:
deployable - the archive to unpack.
pattern - the path in the pattern to use in the temp folder
Returns:
a new deployable (which is unpacked)
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked

unpack

public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
                                                                                        java.io.File folder,
                                                                                        java.lang.String archiveName)
                                                                             throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it.

Type Parameters:
T - an object implementing IDeployable
Parameters:
deployable - the archive to unpack.
folder - the path of the folder for unpacking the archive
archiveName - the name to use for the unpacked archived
Returns:
a new deployable (which is unpacked)
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Deployable can't be unpacked

unpack

public static <T extends org.ow2.util.ee.deploy.api.deployable.IDeployable<T>> T unpack(T deployable,
                                                                                        java.io.File unpackedFolder)
                                                                             throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Unpack the given archive in the given folder, then build a local deployable (and fill it with submodules for EAR) and then return it.

Type Parameters:
T - an object implementing IDeployable
Parameters:
deployable - the archive to unpack.
unpackedFolder - the path of the folder for unpacking the archive
Returns:
a new deployable (which is unpacked)
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR can't be unpacked


Copyright © 2007 OW2 Consortium. All Rights Reserved.