Class AssignableBase<T extends Archive<?>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T archive
      Underlying archive
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AssignableBase​(T archive)
      Constructs a new instance using the underlying specified archive, which is required
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <TYPE extends Assignable>
      TYPE
      as​(java.lang.Class<TYPE> clazz)
      Wraps an Archive in a different 'view'.
      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
    • Field Detail

      • archive

        private final T extends Archive<?> archive
        Underlying archive
    • Constructor Detail

      • AssignableBase

        protected AssignableBase​(T archive)
        Constructs a new instance using the underlying specified archive, which is required
        Parameters:
        archive -
    • Method Detail

      • as

        public final <TYPE extends Assignable> TYPE as​(java.lang.Class<TYPE> clazz)
        Wraps an Archive in a different 'view'.
        Specified by:
        as in interface Assignable
        Parameters:
        clazz - Extension interface to load
        Returns:
        The Archive wrapped as TYPE
        See Also:
        org.jboss.shrinkwrap.api.Specializer#as(java.lang.Class)
      • getArchive

        protected final T getArchive()
        Returns the underlying archive
        Returns: