org.jboss.shrinkwrap.api
Interface Assignable
- All Known Subinterfaces:
- Archive<T>, EnterpriseArchive, ExplodedExporter, ExplodedImporter, GenericArchive, JavaArchive, ResourceAdapterArchive, SerializableView, StreamExporter, StreamImporter<I>, TarExporter, TarGzExporter, TarGzImporter, TarImporter, WebArchive, ZipExporter, ZipImporter, ZipSerializableView
public interface Assignable
General interface for representing entities such
as Archive
s, importers and exporters as
different extension types. The Assignable
type is typically
the end-user view. In effect all Assignable
types achieve some limited form of multiple inheritance via
a wrapping mechanism.
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
Method Summary |
|
as(Class<TYPE> clazz)
Wraps an Archive in a different 'view'. |
as
<TYPE extends Assignable> TYPE as(Class<TYPE> clazz)
- Wraps an Archive in a different 'view'.
- Type Parameters:
TYPE
- - Parameters:
clazz
- Extension interface to load
- Returns:
- The Archive wrapped as TYPE
- See Also:
ExtensionLoader
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.