Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4378209

Doc for javax.jnlp.ServiceManager does not specify the service name format

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_7

      Description



      Name: dfR10049 Date: 10/11/2000



      The format of service name is not specified properly in the ServiceManager doc.
      Javadoc for ServiceManager.lookup() states:

          Asks the JNLP Client for a service with a given name.
          Parameters:
              name - Name of service to lookup.
          Returns:
              An object implementing the service.

      This doc does not prohibit to use different names for the same service
      in different implementations.
      For example: 3 different implementations can use different names:
      "javax.jnlp.BasicService", "BasicService", "MyFavouriteService".
      for the one javax.jnlp.BasicService service.
      Their lookup method will return an instance of javax.jnlp.BasicService
      by the name. But it's too difficult to detect what service will be returned
      by "MyFavouriteService" name in this way.

      My suggestion is: specify that name parameter should be
      fully qualified class name of service and returned object
      should be instance of this class.

                                            
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              rschmidtsunw Rene Schmidt (Inactive)
              Reporter:
              fdasunw Fda Fda (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: