Class PrototypeFactory.PrototypeSerializationFactory
java.lang.Object
org.apache.commons.collections.functors.PrototypeFactory.PrototypeSerializationFactory
- All Implemented Interfaces:
Serializable,Factory
- Enclosing class:
PrototypeFactory
static class PrototypeFactory.PrototypeSerializationFactory
extends Object
implements Factory, Serializable
PrototypeSerializationFactory creates objects by cloning a prototype using serialization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SerializableThe object to clone via serialization each timeprivate static final longThe serial version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrototypeSerializationFactory(Serializable prototype) Constructor to store prototype -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an object using serialization.private voidOverrides the default readObject implementation to prevent de-serialization (see COLLECTIONS-580).private voidOverrides the default writeObject implementation to prevent serialization (see COLLECTIONS-580).
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe serial version- See Also:
-
iPrototype
The object to clone via serialization each time
-
-
Constructor Details
-
PrototypeSerializationFactory
Constructor to store prototype
-
-
Method Details
-
create
Creates an object using serialization. -
writeObject
Overrides the default writeObject implementation to prevent serialization (see COLLECTIONS-580).- Throws:
IOException
-
readObject
Overrides the default readObject implementation to prevent de-serialization (see COLLECTIONS-580).- Throws:
ClassNotFoundExceptionIOException
-