|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.convert.EntityInstantiators
public class EntityInstantiators
Simple value object allowing access to EntityInstantiator instances for a given type falling back to a
default one.
| Constructor Summary | |
|---|---|
EntityInstantiators()
Creates a new EntityInstantiators using the default fallback instantiator and no custom ones. |
|
EntityInstantiators(EntityInstantiator fallback)
Creates a new EntityInstantiators using the given EntityInstantiator as fallback. |
|
EntityInstantiators(EntityInstantiator defaultInstantiator,
Map<Class<?>,EntityInstantiator> customInstantiators)
Creates a new EntityInstantiator using the given fallback EntityInstantiator and the given custom
ones. |
|
EntityInstantiators(Map<Class<?>,EntityInstantiator> customInstantiators)
Creates a new EntityInstantiators using the default fallback instantiator and the given custom ones. |
|
| Method Summary | |
|---|---|
EntityInstantiator |
getInstantiatorFor(PersistentEntity<?,?> entity)
Returns the EntityInstantiator to be used to create the given PersistentEntity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityInstantiators()
EntityInstantiators using the default fallback instantiator and no custom ones.
public EntityInstantiators(EntityInstantiator fallback)
EntityInstantiators using the given EntityInstantiator as fallback.
fallback - must not be null.public EntityInstantiators(Map<Class<?>,EntityInstantiator> customInstantiators)
EntityInstantiators using the default fallback instantiator and the given custom ones.
customInstantiators - must not be null.
public EntityInstantiators(EntityInstantiator defaultInstantiator,
Map<Class<?>,EntityInstantiator> customInstantiators)
EntityInstantiator using the given fallback EntityInstantiator and the given custom
ones.
fallback - must not be null.customInstantiators - must not be null.| Method Detail |
|---|
public EntityInstantiator getInstantiatorFor(PersistentEntity<?,?> entity)
EntityInstantiator to be used to create the given PersistentEntity.
entity - must not be null.
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||