Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-39

The ability to specify multiple interfaces of a service

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0
    • None
    • framework
    • None

    Description

      (Sorry, because sending email to hivemind-dev-subscribe@jakarta.apache.org can not make me subscribe, so i post it here)

      Currently, one service can only have one interface specifiled.

      Inside ProxyBuilder.java, the proxy class built only implements this "major" interface. This behavior is coded as such:

      public ProxyBuilder(String type, ServicePoint point)
      {
      ...
      _classFab.addInterface(_serviceInterface);
      ...
      }

      public void addServiceMethods(String indirection)
      {
      ...
      Method[] methods = _serviceInterface.getMethods();
      for (int i = 0; i < methods.length; i++) ...
      ...
      }

      Because of this behavior, if there is a class:

      class ServiceABImpl implements ServiceA, ServiceB

      This class will be wrapped inside a proxy class, but the proxy class can only implement one interface, that makes the usage of this class/service inconvienent.

      So, there is a wish, wish that more than one interfaces can be specified to one service.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zmhu Zhengmao Hu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: