/// <summary> /// Constructor for the <c>RegistryBinder</c> object. This /// is used to create bindings between classes and the converters /// that should be used to serialize and deserialize the instances. /// All converters are instantiated once and cached for reuse. /// </summary> public RegistryBinder() { this.factory = new ConverterFactory(); this.cache = new ClassCache(); }
/// <summary> /// Constructor for the <c>ConverterScanner</c> object. This /// uses an internal factory to instantiate and cache all of the /// converters created. This will ensure that there is reduced /// overhead for a serialization process using converters. /// </summary> public ConverterScanner() { this.factory = new ConverterFactory(); this.builder = new ScannerBuilder(); }
public void TestFactory() { ConverterFactory factory = new ConverterFactory(); Converter a1 = factory.getInstance(A.class);
/// <summary> /// Constructor for the <c>RegistryBinder</c> object. This /// is used to create bindings between classes and the converters /// that should be used to serialize and deserialize the instances. /// All converters are instantiated once and cached for reuse. /// </summary> public RegistryBinder() { this.factory = new ConverterFactory(); this.cache = new ClassCache(); }
public void TestFactory() { ConverterFactory factory = new ConverterFactory(); Converter a1 = factory.getInstance(A.class);
/// <summary> /// Constructor for the <c>ConverterScanner</c> object. This /// uses an internal factory to instantiate and cache all of the /// converters created. This will ensure that there is reduced /// overhead for a serialization process using converters. /// </summary> public ConverterScanner() { this.factory = new ConverterFactory(); this.builder = new ScannerBuilder(); }