Package jadex.bridge.service.component
Class MethodListenerHandler
- java.lang.Object
 - 
- jadex.bridge.service.component.MethodListenerHandler
 
 
- 
public class MethodListenerHandler extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<MethodInfo,java.util.List<IMethodInvocationListener>>methodlistenersThe registered non-functional property hooks. 
- 
Constructor Summary
Constructors Constructor Description MethodListenerHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMethodListener(MethodInfo m, IMethodInvocationListener listener)Add a method listener.protected voiddoNotifyListeners(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.booleanhasMethodListeners(IServiceIdentifier sid, MethodInfo mi)Test if service and method has listeners.voidnotifyMethodListeners(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.voidremoveMethodListener(MethodInfo m, IMethodInvocationListener listener)Add a method listener. 
 - 
 
- 
- 
Field Detail
- 
methodlisteners
protected java.util.Map<MethodInfo,java.util.List<IMethodInvocationListener>> methodlisteners
The registered non-functional property hooks. 
 - 
 
- 
Method Detail
- 
addMethodListener
public void addMethodListener(MethodInfo m, IMethodInvocationListener listener)
Add a method listener. 
- 
removeMethodListener
public void removeMethodListener(MethodInfo m, IMethodInvocationListener listener)
Add a method listener. 
- 
notifyMethodListeners
public 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. 
- 
hasMethodListeners
public boolean hasMethodListeners(IServiceIdentifier sid, MethodInfo mi)
Test if service and method has listeners. 
- 
doNotifyListeners
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. 
 - 
 
 -