Package io.micronaut.data.model.runtime
Interface RuntimeEntityRegistry
-
- All Superinterfaces:
io.micronaut.context.ApplicationContextProvider
public interface RuntimeEntityRegistry extends io.micronaut.context.ApplicationContextProvider
A registry for looking up entities across repositories.- Since:
- 2.3.0
- Author:
- graemerocher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getEntityEventListener
@NonNull EntityEventListener<java.lang.Object> getEntityEventListener()
- Returns:
- The primary entity event listener
-
autoPopulateRuntimeProperty
@NonNull java.lang.Object autoPopulateRuntimeProperty(@NonNull RuntimePersistentProperty<?> persistentProperty, @Nullable java.lang.Object previousValue)
- Parameters:
persistentProperty
- The persistent propertypreviousValue
- The previous value- Returns:
- The new value, never null.
-
getEntity
@NonNull <T> RuntimePersistentEntity<T> getEntity(@NonNull java.lang.Class<T> type)
Get a new, non-cached instance.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The entity
-
newEntity
@NonNull <T> RuntimePersistentEntity<T> newEntity(@NonNull java.lang.Class<T> type)
Get a new, non-cached instance.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The entity
-
-