Class AbstractListenerImpl.ListenerInvocationImpl<A>
- java.lang.Object
-
- org.infinispan.notifications.impl.AbstractListenerImpl.ListenerInvocationImpl<A>
-
- All Implemented Interfaces:
ListenerInvocation<A>
- Enclosing class:
- AbstractListenerImpl<T,L extends ListenerInvocation<T>>
protected class AbstractListenerImpl.ListenerInvocationImpl<A> extends Object implements ListenerInvocation<A>
Class that encapsulates a valid invocation for a given registered listener - containing a reference to the method to be invoked as well as the target object.
-
-
Field Summary
Fields Modifier and Type Field Description WeakReference<ClassLoader>
classLoader
Method
method
Subject
subject
boolean
sync
Object
target
-
Constructor Summary
Constructors Constructor Description ListenerInvocationImpl(Object target, Method method, boolean sync, ClassLoader classLoader, Subject subject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getTarget()
The listener instance that is notified of eventsvoid
invoke(A event)
Invokes the event
-
-
-
Field Detail
-
target
public final Object target
-
method
public final Method method
-
sync
public final boolean sync
-
classLoader
public final WeakReference<ClassLoader> classLoader
-
subject
public final Subject subject
-
-
Constructor Detail
-
ListenerInvocationImpl
public ListenerInvocationImpl(Object target, Method method, boolean sync, ClassLoader classLoader, Subject subject)
-
-
Method Detail
-
invoke
public void invoke(A event)
Description copied from interface:ListenerInvocation
Invokes the event- Specified by:
invoke
in interfaceListenerInvocation<A>
-
getTarget
public Object getTarget()
Description copied from interface:ListenerInvocation
The listener instance that is notified of events- Specified by:
getTarget
in interfaceListenerInvocation<A>
-
-