Class EntityRegistryImpl
java.lang.Object
com.foreach.across.modules.entity.registry.EntityRegistryImpl
- All Implemented Interfaces:
EntityRegistry
,MutableEntityRegistry
Contains the registered entity definitions that are manageable.
Every registered
MutableEntityConfiguration
must have
a unique name (EntityConfiguration.getName()
) and entity type (EntityConfiguration.getEntityType()
).
WARNING: Although in most cases not an actual issue, EntityRegistry currently does not support registering multiple
classes with the same name from different class loaders.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
<T> MutableEntityConfiguration<T>
getEntityConfiguration
(@NonNull Class<T> entityType) <T> MutableEntityConfiguration<T>
getEntityConfiguration
(@NonNull String entityName) <T> EntityConfiguration<T>
getEntityConfiguration
(T entity) void
register
(@NonNull MutableEntityConfiguration<?> entityConfiguration) <T> MutableEntityConfiguration<T>
<T> MutableEntityConfiguration<T>
-
Constructor Details
-
EntityRegistryImpl
public EntityRegistryImpl()
-
-
Method Details
-
getEntities
- Specified by:
getEntities
in interfaceEntityRegistry
-
register
- Specified by:
register
in interfaceMutableEntityRegistry
-
contains
- Specified by:
contains
in interfaceEntityRegistry
-
contains
- Specified by:
contains
in interfaceEntityRegistry
-
remove
- Specified by:
remove
in interfaceMutableEntityRegistry
-
remove
- Specified by:
remove
in interfaceMutableEntityRegistry
-
getEntityConfiguration
- Specified by:
getEntityConfiguration
in interfaceEntityRegistry
-
getEntityConfiguration
public <T> MutableEntityConfiguration<T> getEntityConfiguration(@NonNull @NonNull Class<T> entityType) - Specified by:
getEntityConfiguration
in interfaceEntityRegistry
- Specified by:
getEntityConfiguration
in interfaceMutableEntityRegistry
-
getEntityConfiguration
public <T> MutableEntityConfiguration<T> getEntityConfiguration(@NonNull @NonNull String entityName) - Specified by:
getEntityConfiguration
in interfaceEntityRegistry
- Specified by:
getEntityConfiguration
in interfaceMutableEntityRegistry
-