Class MethodListenerHandler


  • public class MethodListenerHandler
    extends java.lang.Object
    • Field Detail

      • methodlisteners

        protected java.util.Map<jadex.commons.MethodInfo,​java.util.List<IMethodInvocationListener>> methodlisteners
        The registered non-functional property hooks.
    • Constructor Detail

      • MethodListenerHandler

        public MethodListenerHandler()
    • Method Detail

      • addMethodListener

        public void addMethodListener​(jadex.commons.MethodInfo m,
                                      IMethodInvocationListener listener)
        Add a method listener.
      • removeMethodListener

        public void removeMethodListener​(jadex.commons.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,
                                          jadex.commons.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.