Class MultiServiceInvocationHandler

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

    public class MultiServiceInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Invocation handler for multiplexing service calls.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The agent.
      protected java.lang.Class<?> muxservicetype
      The multiplex service type.
      protected java.lang.String reqname
      The required service name.
      protected java.lang.Class<?> servicetype
      The service type.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object createValue​(Value val, IValueFetcher fetcher)
      Convert value annotation to object.
      static java.lang.Object createValue​(java.lang.Class<?> clazz)
      Create a value from a class.
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
      Called when a method is invoked.
      • Methods inherited from class java.lang.Object

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

      • reqname

        protected java.lang.String reqname
        The required service name.
      • servicetype

        protected java.lang.Class<?> servicetype
        The service type.
      • muxservicetype

        protected java.lang.Class<?> muxservicetype
        The multiplex service type.
    • Constructor Detail

      • MultiServiceInvocationHandler

        public MultiServiceInvocationHandler​(IInternalAccess agent,
                                             java.lang.String reqname,
                                             java.lang.Class<?> muxservicetype)
        Create a new invocation handler.
    • 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 a method is invoked.
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • createValue

        public static java.lang.Object createValue​(Value val,
                                                   IValueFetcher fetcher)
        Convert value annotation to object.
      • createValue

        public static java.lang.Object createValue​(java.lang.Class<?> clazz)
        Create a value from a class.