public class BasicEntityTypeRegistry extends java.lang.Object implements EntityTypeRegistry
Constructor and Description |
---|
BasicEntityTypeRegistry() |
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
getEntityTypeOf(java.lang.Class<T> implClazz)
Returns the interface of this entity implementation.
|
<T extends Entity> |
getImplementedBy(java.lang.Class<T> type)
Returns the implementation to be used for the given entity type.
|
<T extends Entity> |
registerImplementation(java.lang.Class<T> type,
java.lang.Class<? extends T> implClazz)
Registers the implementation to use for a given entity type.
|
public <T extends Entity> EntityTypeRegistry registerImplementation(java.lang.Class<T> type, java.lang.Class<? extends T> implClazz)
EntityTypeRegistry
registerImplementation
in interface EntityTypeRegistry
public <T extends Entity> java.lang.Class<? extends T> getImplementedBy(java.lang.Class<T> type)
EntityTypeRegistry
getImplementedBy
in interface EntityTypeRegistry
public <T extends Entity> java.lang.Class<? super T> getEntityTypeOf(java.lang.Class<T> implClazz)
EntityTypeRegistry
entity.getEntityType().getName()
.getEntityTypeOf
in interface EntityTypeRegistry