Interface EntityListenerProvider


public interface EntityListenerProvider
A provider for an EntityListener object.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <ENTITY, LISTENER extends EntityListener<ENTITY>>
    LISTENER
    get(Class<LISTENER> listenerClass, Supplier<LISTENER> listenerSupplier)
    Returns an EntityListener object.
  • Method Details

    • get

      default <ENTITY, LISTENER extends EntityListener<ENTITY>> LISTENER get(Class<LISTENER> listenerClass, Supplier<LISTENER> listenerSupplier)
      Returns an EntityListener object.

      This method must not return null.

      Type Parameters:
      ENTITY - the entity type
      LISTENER - the entity listener type
      Parameters:
      listenerClass - the implementation class of EntityListener
      listenerSupplier - the Supplier object that provides an EntityListener object
      Returns:
      an EntityListener object