Class MethodListenerHandler
java.lang.Object
jadex.providedservice.impl.service.MethodListenerHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
<jadex.common.MethodInfo, List<IMethodInvocationListener>> The registered non-functional property hooks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMethodListener
(jadex.common.MethodInfo m, IMethodInvocationListener listener) Add a method listener.protected void
doNotifyListeners
(boolean start, Object proxy, Method method, Object[] args, Object callid, ServiceInvocationContext context, List<IMethodInvocationListener> lis) Do notify the listeners.boolean
hasMethodListeners
(IServiceIdentifier sid, jadex.common.MethodInfo mi) Test if service and method has listeners.void
notifyMethodListeners
(boolean start, Object proxy, Method method, Object[] args, Object callid, ServiceInvocationContext context) Notify registered listeners in case a method is called.void
removeMethodListener
(jadex.common.MethodInfo m, IMethodInvocationListener listener) Add a method listener.
-
Field Details
-
methodlisteners
The registered non-functional property hooks.
-
-
Constructor Details
-
MethodListenerHandler
public MethodListenerHandler()
-
-
Method Details
-
addMethodListener
Add a method listener. -
removeMethodListener
Add a method listener. -
notifyMethodListeners
public void notifyMethodListeners(boolean start, Object proxy, Method method, Object[] args, Object callid, ServiceInvocationContext context) Notify registered listeners in case a method is called. -
hasMethodListeners
Test if service and method has listeners. -
doNotifyListeners
protected void doNotifyListeners(boolean start, Object proxy, Method method, Object[] args, Object callid, ServiceInvocationContext context, List<IMethodInvocationListener> lis) Do notify the listeners.
-