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

    Modifier and Type
    Method
    Description
    Return a new instance of the intermediary type to be populated.
    boolean
    Get whether or not new object instances can be created.
    complete(I intermediate)
    Return a finalized object based on the provided intermediate.
  • Method Details

    • 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

      Get whether or not new object instances can be created.
      Returns:
      new instance creation
      Since:
      4.0.0