public interface ClassLoaderAwareListenable extends Listenable
Listenable
with the possibility of specifying the
ClassLoader
which should be set as the context class loader for the invoked
listener methodModifier and Type | Method and Description |
---|---|
default void |
addListener(Object listener,
ClassLoader classLoader)
Adds a listener along with a class loader to use for the invocation
|
CompletionStage<Void> |
addListenerAsync(Object listener,
ClassLoader classLoader)
Asynchronous version of
addListener(Object, ClassLoader) |
addListener, addListenerAsync, getListeners, removeListener, removeListenerAsync
default void addListener(Object listener, ClassLoader classLoader)
listener
- listener to add, must not be nullclassLoader
- classloader, must not be nullCompletionStage<Void> addListenerAsync(Object listener, ClassLoader classLoader)
addListener(Object, ClassLoader)
listener
- listener to add, must not be nullclassLoader
- classloader, must not be nullCopyright © 2021 JBoss by Red Hat. All rights reserved.