Class ZipSerializableViewImpl
java.lang.Object
org.jboss.shrinkwrap.impl.base.serialization.ZipSerializableViewImpl
- All Implemented Interfaces:
Serializable
,Assignable
,SerializableView
,ZipSerializableView
Implementation of a
Serializable
view of Archive
s, backed by ZIP en/decoding the contents during
serialization/deserialization. Defines the wire protocol and must remain backwards-compatible.- Version:
- $Revision: $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZipSerializableViewImpl
(Archive<?> archive) Creates a new instance, wrapping the specifiedArchive
-
Method Summary
Modifier and TypeMethodDescription<TYPE extends Assignable>
TYPEWraps an Archive in a different 'view'.private void
Deserializes according to the custom form defined byinvalid reference
ZipSerializableImpl#writeObject(ObjectOutputStream)
private void
Serializes the invocation with a custom form
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID- See Also:
-
log
Logger -
name
Name of the archive; to be serialized -
id
String form of the ID -
archive
Underlying archive. Won't be directly serialized; instead we'll encode it as ZIP and send that
-
-
Constructor Details
-
ZipSerializableViewImpl
Creates a new instance, wrapping the specifiedArchive
-
-
Method Details
-
as
Wraps an Archive in a different 'view'.- Specified by:
as
in interfaceAssignable
- Type Parameters:
TYPE
-- Parameters:
clazz
- Extension interface to load- Returns:
- The Archive wrapped as TYPE
- See Also:
-
writeObject
Serializes the invocation with a custom form- Throws:
IOException
-
readObject
Deserializes according to the custom form defined byinvalid reference
ZipSerializableImpl#writeObject(ObjectOutputStream)
- Throws:
IOException
ClassNotFoundException
-