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 a Archive in a different 'view'.
 

Method Detail

as

<TYPE extends Assignable> TYPE as(Class<TYPE> clazz)
Wraps a Archive in a different 'view'.

Type Parameters:
TYPE -
Parameters:
clazz - Extension interface to load
Returns:
The Archive wrapped as TYPE


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.