Class StringLiaison

java.lang.Object
space.arim.dazzleconf.engine.liaison.StringLiaison
All Implemented Interfaces:
TypeLiaison

public final class StringLiaison extends Object implements TypeLiaison
Liaison for strings. Handles the unannotated String
  • Constructor Details

    • StringLiaison

      public StringLiaison()
      Creates
  • Method Details

    • makeAgent

      @SideEffectFree public <V> @Nullable TypeLiaison.Agent<V> makeAgent(@NonNull TypeToken<V> typeToken, @NonNull TypeLiaison.Handshake handshake)
      Description copied from interface: TypeLiaison
      Attempts to support the following type.

      If supported, an agent is returned that handles type serialization, deserialization, and defaults. Note that implementations may need casting at the source level to satisfy the generic argument of the token requested.

      Specified by:
      makeAgent in interface TypeLiaison
      Type Parameters:
      V - the type being requested
      Parameters:
      typeToken - the type token
      handshake - the handshake
      Returns:
      the agent if supported, or null otherwise