org.objectweb.easybeans.deployer.api
Interface EZBDeployable<T>

Type Parameters:
T - the type of the deployable.
All Known Subinterfaces:
CARDeployable, EARDeployable, EJB21Deployable, EJB3Deployable, EJBDeployable<T>, LibDeployable, RARDeployable, UnknownDeployable, WARDeployable
All Known Implementing Classes:
AbsDeployable, CARDeployableImpl, EARDeployableImpl, EJB21DeployableImpl, EJB3DeployableImpl, LibDeployableImpl, RARDeployableImpl, UnknownDeployableImpl, WARDeployableImpl

public interface EZBDeployable<T>

This interface is used to represent any deployment object that can be used within EasyBeans.
The EJB/WEB/RAR/EAR, etc components should extend this interface.

Author:
Florent Benoit

Method Summary
 EZBArchive getArchive()
          Gets the Archive of this deployable object.
 T getOriginalDeployable()
          If the Deployable has been unpacked, return the initial archive.
 T getUnpackedDeployable()
          If the Deployable has been unpacked, return the unpacked deployable.
 void setUnpackedDeployable(T unpackedDeployable)
          If the Deployable has been unpacked, sets the unpacked deployable.
 

Method Detail

getArchive

EZBArchive getArchive()
Gets the Archive of this deployable object.

Returns:
the archive for this deployable.

getOriginalDeployable

T getOriginalDeployable()
If the Deployable has been unpacked, return the initial archive.

Returns:
the deployable before it is unpacked.

getUnpackedDeployable

T getUnpackedDeployable()
If the Deployable has been unpacked, return the unpacked deployable.

Returns:
the unpacked deployable associated to this deployable.

setUnpackedDeployable

void setUnpackedDeployable(T unpackedDeployable)
If the Deployable has been unpacked, sets the unpacked deployable.

Parameters:
unpackedDeployable - the unpacked deployable associated to this deployable.