Class RuntimeFieldFactory<V>

java.lang.Object
io.protostuff.runtime.RuntimeFieldFactory<V>
All Implemented Interfaces:
Delegate<V>

public abstract class RuntimeFieldFactory<V> extends Object implements Delegate<V>
A factory to create runtime fields based on reflection.
Author:
David Yu
  • Constructor Details

    • RuntimeFieldFactory

      public RuntimeFieldFactory(int id)
  • Method Details

    • getFieldFactory

      public static RuntimeFieldFactory<?> getFieldFactory(Class<?> clazz)
      Gets the runtime field factory of the given clazz.

      Method overload for backwards compatibility.

    • getFieldFactory

      public static RuntimeFieldFactory<?> getFieldFactory(Class<?> clazz, IdStrategy strategy)
      Gets the runtime field factory of the given clazz.
    • getInline

      public static <T> RuntimeFieldFactory<T> getInline(Class<T> typeClass)
      Returns the factory for inline (scalar) values.
    • create

      public abstract <T> Field<T> create(int number, String name, Field field, IdStrategy strategy)
      Creates a runtime field based on reflection.