Example usage for org.springframework.data.convert EntityInstantiators EntityInstantiators

List of usage examples for org.springframework.data.convert EntityInstantiators EntityInstantiators

Introduction

In this page you can find the example usage for org.springframework.data.convert EntityInstantiators EntityInstantiators.

Prototype

public EntityInstantiators(Map<Class<?>, EntityInstantiator> customInstantiators) 

Source Link

Document

Creates a new EntityInstantiators using the default fallback instantiator and the given custom ones.

Usage

From source file:org.springframework.data.gemfire.mapping.MappingPdxSerializer.java

/**
 * Configures the {@link EntityInstantiator}s used to create the instances read by this PdxSerializer.
 *
 * @param gemfireInstantiators must not be {@literal null}.
 *//*w w w  . j  av a2s.  c o  m*/
public void setGemfireInstantiators(Map<Class<?>, EntityInstantiator> gemfireInstantiators) {
    Assert.notNull(gemfireInstantiators);
    this.instantiators = new EntityInstantiators(gemfireInstantiators);
}