@Singleton @Internal public class DefaultRuntimeEntityRegistry extends java.lang.Object implements RuntimeEntityRegistry
RuntimeEntityRegistry
.Constructor and Description |
---|
DefaultRuntimeEntityRegistry(EntityEventRegistry eventRegistry,
java.util.Collection<io.micronaut.context.BeanRegistration<PropertyAutoPopulator<?>>> propertyPopulators)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
autoPopulateRuntimeProperty(RuntimePersistentProperty<?> persistentProperty,
java.lang.Object previousValue) |
<T> RuntimePersistentEntity<T> |
getEntity(java.lang.Class<T> type)
Get a new, non-cached instance.
|
EntityEventListener<java.lang.Object> |
getEntityEventListener() |
<T> RuntimePersistentEntity<T> |
newEntity(java.lang.Class<T> type)
Get a new, non-cached instance.
|
public DefaultRuntimeEntityRegistry(EntityEventRegistry eventRegistry, java.util.Collection<io.micronaut.context.BeanRegistration<PropertyAutoPopulator<?>>> propertyPopulators)
eventRegistry
- The event registrypropertyPopulators
- The property populators@NonNull public java.lang.Object autoPopulateRuntimeProperty(@NonNull RuntimePersistentProperty<?> persistentProperty, java.lang.Object previousValue)
autoPopulateRuntimeProperty
in interface RuntimeEntityRegistry
persistentProperty
- The persistent propertypreviousValue
- The previous value@NonNull public EntityEventListener<java.lang.Object> getEntityEventListener()
getEntityEventListener
in interface RuntimeEntityRegistry
@NonNull public final <T> RuntimePersistentEntity<T> getEntity(@NonNull java.lang.Class<T> type)
RuntimeEntityRegistry
getEntity
in interface RuntimeEntityRegistry
T
- The generic typetype
- The type@NonNull public <T> RuntimePersistentEntity<T> newEntity(@NonNull java.lang.Class<T> type)
RuntimeEntityRegistry
newEntity
in interface RuntimeEntityRegistry
T
- The generic typetype
- The type