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, TarGzImporterImpl, TarImporterImpl, ZipImporterImpl
public abstract class AssignableBase<T extends Archive<?>>
- extends Object
- implements Assignable
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: $
- Author:
- Aslak Knutsen
|
Constructor Summary |
protected |
AssignableBase(T archive)
Constructs a new instance using the underlying specified archive, which is required |
|
Method Summary |
|
as(Class<TYPE> clazz)
|
protected T |
getArchive()
Returns the underlying archive |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssignableBase
protected AssignableBase(T archive)
- Constructs a new instance using the underlying specified archive, which is required
- Parameters:
archive -
as
public final <TYPE extends Assignable> TYPE as(Class<TYPE> clazz)
-
- Specified by:
as in interface Assignable
- See Also:
Specializer
getArchive
protected final T getArchive()
- Returns the underlying archive
- Returns:
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.