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 Details

    • getEntityEventListener

      @NonNull @NonNull EntityEventListener<Object> getEntityEventListener()
      Returns:
      The primary entity event listener
    • autoPopulateRuntimeProperty

      @NonNull @NonNull Object autoPopulateRuntimeProperty(@NonNull @NonNull RuntimePersistentProperty<?> persistentProperty, @Nullable @Nullable Object previousValue)
      Parameters:
      persistentProperty - The persistent property
      previousValue - The previous value
      Returns:
      The new value, never null.
    • getEntity

      @NonNull <T> @NonNull RuntimePersistentEntity<T> getEntity(@NonNull @NonNull 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> @NonNull RuntimePersistentEntity<T> newEntity(@NonNull @NonNull Class<T> type)
      Get a new, non-cached instance.
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      Returns:
      The entity