public interface ClassLoaderAwareFilteringListenable<K,V> extends FilteringListenable<K,V>
FilteringListenable
with the possibility of specifying the
ClassLoader
which should be set as the context class loader for the invoked
listener methodClassLoaderAwareListenable
,
FilteringListenable
Modifier and Type | Method and Description |
---|---|
<C> void |
addListener(Object listener,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter,
ClassLoader classLoader)
Adds a listener with the provided filter and converter and using a given classloader when invoked.
|
void |
addListener(Object listener,
KeyFilter<? super K> filter,
ClassLoader classLoader)
Adds a listener to the component.
|
addFilteredListener, addListener, addListener
addListener, getListeners, removeListener
void addListener(Object listener, KeyFilter<? super K> filter, ClassLoader classLoader)
Listener
and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener
annotation for more information.
listener
- must not be null.classLoader
- class loader<C> void addListener(Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, ClassLoader classLoader)
FilteringListenable.addListener(Object,
org.infinispan.notifications.cachelistener.filter.CacheEventFilter,
org.infinispan.notifications.cachelistener.filter.CacheEventConverter)
for more details.
C
- The type that the converter returns. The listener must handle this type in any methods that handle
events being returnedlistener
- must not be null. The listener to callback on when an event is raisedfilter
- The filter to apply for the entry to see if the event should be raisedconverter
- The converter to convert the filtered entry to a new valueclassLoader
- The class loader to use when the event is firedCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.