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
Modifier and TypeMethodDescription@NonNull Object
autoPopulateRuntimeProperty
(@NonNull RuntimePersistentProperty<?> persistentProperty, @Nullable Object previousValue) <T> @NonNull RuntimePersistentEntity<T>
Get a new, non-cached instance.@NonNull EntityEventListener<Object>
<T> @NonNull RuntimePersistentEntity<T>
Get a new, non-cached instance.Methods inherited from interface io.micronaut.context.ApplicationContextProvider
getApplicationContext
-
Method Details
-
getEntityEventListener
- Returns:
- The primary entity event listener
-
autoPopulateRuntimeProperty
@NonNull @NonNull Object autoPopulateRuntimeProperty(@NonNull @NonNull RuntimePersistentProperty<?> persistentProperty, @Nullable @Nullable Object previousValue) - Parameters:
persistentProperty
- The persistent propertypreviousValue
- The previous value- Returns:
- The new value, never null.
-
getEntity
Get a new, non-cached instance.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The entity
-
newEntity
Get a new, non-cached instance.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The entity
-