Package io.protostuff.runtime
Class HasDelegate<T>
- java.lang.Object
-
- io.protostuff.runtime.HasDelegate<T>
-
- All Implemented Interfaces:
PolymorphicSchema.Factory
- Direct Known Subclasses:
NumericIdStrategy.RegisteredDelegate
public class HasDelegate<T> extends java.lang.Object implements PolymorphicSchema.Factory
Wraps a delegate.
-
-
Field Summary
Fields Modifier and Type Field Description Delegate<T>
delegate
ArraySchemas.Base
genericElementSchema
IdStrategy
strategy
-
Constructor Summary
Constructors Constructor Description HasDelegate(Delegate<T> delegate, IdStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Delegate<T>
getDelegate()
Returns the delegate.PolymorphicSchema
newSchema(java.lang.Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler)
-
-
-
Field Detail
-
strategy
public final IdStrategy strategy
-
genericElementSchema
public final ArraySchemas.Base genericElementSchema
-
-
Constructor Detail
-
HasDelegate
public HasDelegate(Delegate<T> delegate, IdStrategy strategy)
-
-
Method Detail
-
newSchema
public final PolymorphicSchema newSchema(java.lang.Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler)
- Specified by:
newSchema
in interfacePolymorphicSchema.Factory
-
-