Interface Assignable

All Known Subinterfaces:
Archive<T>, EnterpriseArchive, ExplodedExporter, ExplodedImporter, GenericArchive, JavaArchive, ResourceAdapterArchive, SerializableView, StreamExporter, StreamImporter<I>, TarBz2Exporter, TarBz2Importer, TarExporter, TarGzExporter, TarGzImporter, TarImporter, WebArchive, ZipExporter, ZipImporter, ZipSerializableView, ZipStoredExporter

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

    Modifier and Type
    Method
    Description
    <TYPE extends Assignable>
    TYPE
    as(Class<TYPE> clazz)
    Wraps an Archive in a different 'view'.
  • Method Details

    • as

      <TYPE extends Assignable> TYPE as(Class<TYPE> clazz)
      Wraps an Archive in a different 'view'.
      Type Parameters:
      TYPE - The type of the view to obtain.
      Parameters:
      clazz - Extension interface to load
      Returns:
      The Archive wrapped as TYPE
      See Also: