@Singleton @Internal public class DefaultRuntimeEntityRegistry extends java.lang.Object implements RuntimeEntityRegistry, io.micronaut.context.ApplicationContextProvider
RuntimeEntityRegistry.| Constructor and Description |
|---|
DefaultRuntimeEntityRegistry(EntityEventRegistry eventRegistry,
java.util.Collection<io.micronaut.context.BeanRegistration<PropertyAutoPopulator<?>>> propertyPopulators,
io.micronaut.context.ApplicationContext applicationContext)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
autoPopulateRuntimeProperty(RuntimePersistentProperty<?> persistentProperty,
java.lang.Object previousValue) |
io.micronaut.context.ApplicationContext |
getApplicationContext() |
<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, io.micronaut.context.ApplicationContext applicationContext)
eventRegistry - The event registrypropertyPopulators - The property populatorsapplicationContext - The application context@NonNull
public java.lang.Object autoPopulateRuntimeProperty(@NonNull
RuntimePersistentProperty<?> persistentProperty,
java.lang.Object previousValue)
autoPopulateRuntimeProperty in interface RuntimeEntityRegistrypersistentProperty - 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)
RuntimeEntityRegistrygetEntity in interface RuntimeEntityRegistryT - The generic typetype - The type@NonNull public <T> RuntimePersistentEntity<T> newEntity(@NonNull java.lang.Class<T> type)
RuntimeEntityRegistrynewEntity in interface RuntimeEntityRegistryT - The generic typetype - The typepublic io.micronaut.context.ApplicationContext getApplicationContext()
getApplicationContext in interface io.micronaut.context.ApplicationContextProvider