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 Serializable
The object to clone via serialization each timeprivate static final long
The serial version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PrototypeSerializationFactory
(Serializable prototype) Constructor to store prototype -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates an object using serialization.private void
Overrides the default readObject implementation to prevent de-serialization (see COLLECTIONS-580).private void
Overrides 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:
ClassNotFoundException
IOException
-