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 Archives, 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
<TYPE extends Assignable>
TYPE
as(Class<TYPE> clazz)
          Wraps an Archive in a different 'view'.
 

Method Detail

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 © 2012 JBoss by Red Hat. All Rights Reserved.