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
A generic implementation of
Assignable that delegates down to the Archive extensions inner archive. Used by
Archive extensions to simplify handling the generic extension mechanism.- Version:
- $Revision: $
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssignableBase(T archive) Constructs a new instance using the underlying specified archive, which is required -
Method Summary
Modifier and TypeMethodDescriptionfinal <TYPE extends Assignable>
TYPEWraps an Archive in a different 'view'.protected final TReturns the underlying archive
-
Field Details
-
archive
Underlying archive
-
-
Constructor Details
-
AssignableBase
Constructs a new instance using the underlying specified archive, which is required- Parameters:
archive-
-
-
Method Details
-
as
Wraps an Archive in a different 'view'.- Specified by:
asin interfaceAssignable- Type Parameters:
TYPE-- Parameters:
clazz- Extension interface to load- Returns:
- The Archive wrapped as TYPE
- See Also:
-
getArchive
Returns the underlying archive- Returns:
-