org.springframework.data.gemfire.serialization
Interface InstantiatorGenerator

All Known Implementing Classes:
AsmInstantiatorGenerator

public interface InstantiatorGenerator

Factory that generates Instantiator classes to improve instantiation of custom types.

Author:
Costin Leau

Method Summary
 Instantiator getInstantiator(Class<? extends DataSerializable> clazz, int classId)
          Returns a (potentially new) Instantiator that optimizes the instantiation of the given types.
 

Method Detail

getInstantiator

Instantiator getInstantiator(Class<? extends DataSerializable> clazz,
                             int classId)
Returns a (potentially new) Instantiator that optimizes the instantiation of the given types.

Parameters:
clazz - class produced by the instantiator
classId - instantiator class id
Returns:
an instantiator optimized for the given type.


Copyright © 2010 SpringSource, a division of VMware. All Rights Reserved.