public class MethodListenerHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<MethodInfo,java.util.List<IMethodInvocationListener>> |
methodlisteners
The registered non-functional property hooks.
|
Constructor and Description |
---|
MethodListenerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addMethodListener(MethodInfo m,
IMethodInvocationListener listener)
Add a method listener.
|
protected void |
doNotifyListeners(boolean start,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object callid,
ServiceInvocationContext context,
java.util.List<IMethodInvocationListener> lis)
Do notify the listeners.
|
boolean |
hasMethodListeners(IServiceIdentifier sid,
MethodInfo mi)
Test if service and method has listeners.
|
void |
notifyMethodListeners(boolean start,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object callid,
ServiceInvocationContext context)
Notify registered listeners in case a method is called.
|
void |
removeMethodListener(MethodInfo m,
IMethodInvocationListener listener)
Add a method listener.
|
protected java.util.Map<MethodInfo,java.util.List<IMethodInvocationListener>> methodlisteners
public void addMethodListener(MethodInfo m, IMethodInvocationListener listener)
public void removeMethodListener(MethodInfo m, IMethodInvocationListener listener)
public void notifyMethodListeners(boolean start, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object callid, ServiceInvocationContext context)
public boolean hasMethodListeners(IServiceIdentifier sid, MethodInfo mi)
protected void doNotifyListeners(boolean start, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object callid, ServiceInvocationContext context, java.util.List<IMethodInvocationListener> lis)