Class WebServiceToJadexWrapperInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class WebServiceToJadexWrapperInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Proxy invocation handler that maps a web service call to a Jadex service and waits for the result, which is returned to the web service caller.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IService service
      The service.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
      Called when web service is called.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • service

        protected IService service
        The service.
    • Constructor Detail

      • WebServiceToJadexWrapperInvocationHandler

        public WebServiceToJadexWrapperInvocationHandler​(IService service)
        Create a new service wrapper invocation handler.
        Parameters:
        agent - The internal access of the agent.
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Called when web service is called. Redirects to Jadex service method and synchronously waits for reply.
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable