|
|||||||||
| 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. |
|
protected abstract WireFormat.FieldType |
getFieldType()
|
|
static
|
getInline(java.lang.Class<T> typeClass)
Returns the factory for inline (scalar) values. |
|
protected abstract V |
readFrom(Input input)
|
|
protected abstract void |
transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
|
|
protected abstract java.lang.Class<?> |
typeClass()
|
|
protected abstract void |
writeTo(Output output,
int number,
V value,
boolean repeated)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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.
protected abstract WireFormat.FieldType getFieldType()
protected abstract V readFrom(Input input)
throws java.io.IOException
java.io.IOException
protected abstract void writeTo(Output output,
int number,
V value,
boolean repeated)
throws java.io.IOException
java.io.IOException
protected abstract void transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.Class<?> typeClass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||