Package org.jboss.shrinkwrap.impl.base
Class AssignableBase<T extends Archive<?>>
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.base.AssignableBase<T>
-
- All Implemented Interfaces:
Assignable
- Direct Known Subclasses:
AbstractStreamExporterImpl,ConfigurableArchiveImpl,ContainerBase,ExplodedExporterImpl,ExplodedImporterImpl,IdentifiableArchiveImpl,TarImporterBase,ZipImporterImpl
public abstract class AssignableBase<T extends Archive<?>> extends java.lang.Object implements Assignable
A generic implementation ofAssignablethat delegates down to the Archive extensions inner archive. Used by Archive extensions to simplify handling the generic extension mechanism.- Version:
- $Revision: $
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssignableBase(T archive)Constructs a new instance using the underlying specified archive, which is required
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TYPE extends Assignable>
TYPEas(java.lang.Class<TYPE> clazz)Wraps an Archive in a different 'view'.protected TgetArchive()Returns the underlying archive
-
-
-
Constructor Detail
-
AssignableBase
protected AssignableBase(T archive)
Constructs a new instance using the underlying specified archive, which is required- Parameters:
archive-
-
-
Method Detail
-
as
public final <TYPE extends Assignable> TYPE as(java.lang.Class<TYPE> clazz)
Wraps an Archive in a different 'view'.- Specified by:
asin interfaceAssignable- Parameters:
clazz- Extension interface to load- Returns:
- The Archive wrapped as TYPE
- See Also:
org.jboss.shrinkwrap.api.Specializer#as(java.lang.Class)
-
getArchive
protected final T getArchive()
Returns the underlying archive- Returns:
-
-