Interface FieldDiscoverer.InstanceFactory<I>
-
- Type Parameters:
I- intermediate type
- All Known Subinterfaces:
FieldDiscoverer.MutableInstanceFactory<I>
- Enclosing interface:
- FieldDiscoverer<I>
public static interface FieldDiscoverer.InstanceFactory<I>
A handler that controls the deserialization process for an object.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ibegin()Return a new instance of the intermediary type to be populated.booleancanCreateInstances()Get whether or not new object instances can be created.Objectcomplete(I intermediate)Return a finalized object based on the provided intermediate.
-
-
-
Method Detail
-
begin
I begin()
Return a new instance of the intermediary type to be populated.- Returns:
- new intermediate container
- Since:
- 4.0.0
-
complete
Object complete(I intermediate) throws SerializationException
Return a finalized object based on the provided intermediate.- Parameters:
intermediate- intermediate container to hold values- Returns:
- final value
- Throws:
SerializationException- if unable to construct a- Since:
- 4.0.0
-
canCreateInstances
boolean canCreateInstances()
Get whether or not new object instances can be created.- Returns:
- new instance creation
- Since:
- 4.0.0
-
-