Interface ClassLoaderAwareListenable

  • All Superinterfaces:
    Listenable

    public interface ClassLoaderAwareListenable
    extends Listenable
    Interface that enhances Listenable with the possibility of specifying the ClassLoader which should be set as the context class loader for the invoked listener method
    Since:
    5.2
    Author:
    Tristan Tarrant
    • Method Detail

      • addListener

        default void addListener​(Object listener,
                                 ClassLoader classLoader)
        Adds a listener along with a class loader to use for the invocation
        Parameters:
        listener - listener to add, must not be null
        classLoader - classloader, must not be null