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
    • 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 property
        previousValue - 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