|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dyuproject.protostuff.runtime.RuntimeFieldFactory<V>
public abstract class RuntimeFieldFactory<V>
A factory to create runtime fields based on reflection.
| Constructor Summary | |
|---|---|
RuntimeFieldFactory(int id)
|
|
| Method Summary | ||
|---|---|---|
abstract
|
create(int number,
java.lang.String name,
java.lang.reflect.Field field,
IdStrategy strategy)
Creates a runtime field based on reflection. |
|
static RuntimeFieldFactory<?> |
getFieldFactory(java.lang.Class<?> clazz)
Gets the runtime field factory of the given clazz. |
|
static RuntimeFieldFactory<?> |
getFieldFactory(java.lang.Class<?> clazz,
IdStrategy strategy)
Gets the runtime field factory of the given clazz. |
|
static
|
getInline(java.lang.Class<T> typeClass)
Returns the factory for inline (scalar) values. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.dyuproject.protostuff.runtime.Delegate |
|---|
getFieldType, readFrom, transfer, typeClass, writeTo |
| Constructor Detail |
|---|
public RuntimeFieldFactory(int id)
| Method Detail |
|---|
public static RuntimeFieldFactory<?> getFieldFactory(java.lang.Class<?> clazz)
clazz.
Method overload for backwards compatibility.
public static RuntimeFieldFactory<?> getFieldFactory(java.lang.Class<?> clazz,
IdStrategy strategy)
clazz.
public static <T> RuntimeFieldFactory<T> getInline(java.lang.Class<T> typeClass)
public abstract <T> MappedSchema.Field<T> create(int number,
java.lang.String name,
java.lang.reflect.Field field,
IdStrategy strategy)
field based on reflection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||