ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base.serialization
Class ZipSerializableViewImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.serialization.ZipSerializableViewImpl
All Implemented Interfaces:
Serializable, Assignable, SerializableView, ZipSerializableView

public class ZipSerializableViewImpl
extends Object
implements ZipSerializableView

Implementation of a Serializable view of Archives, backed by ZIP en/decoding the contents during serialization/deserialization. Defines the wire protocol and must remain backwards-compatible.

Version:
$Revision: $
Author:
ALR
See Also:
Serialized Form

Constructor Summary
ZipSerializableViewImpl(Archive<?> archive)
          Creates a new instance, wrapping the specified Archive
 
Method Summary
<TYPE extends Assignable>
TYPE
as(Class<TYPE> clazz)
          Wraps an Archive in a different 'view'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipSerializableViewImpl

public ZipSerializableViewImpl(Archive<?> archive)
Creates a new instance, wrapping the specified Archive

Method Detail

as

public <TYPE extends Assignable> TYPE as(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:
Assignable.as(java.lang.Class)

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

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