Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9443

Wizard for creating Service implementations (ServiceLoader / Service file)

    XMLWordPrintable

Details

    • A new wizard called New Service Provider Class has been added for the creation of service implementations. Through the wizard a user can create a Service Provider Java class for a selected Service Type.
    • Documented as Feature Request

    Description

      It would be very nice if we had a wizard or hotkey to create a new service implementation:

      CTRL-N
      --> New Service Implementation Class

      1. Wizard asks you to specify the service Interface you wish to implement, and then lets you give the typical new-class information (with Interface already populated and greyed out.)

      2. When submitted, the wizard creates the implementing class, and also creates a service file in the java-resources 'META-INF/services' directory, containing the name of your service implementation class. If the Service file already exists, your class should be added to it on a new line:

      META-INF/services/org.example.service.spi.Interface

      Attachments

        1. scr.png
          scr.png
          70 kB
        2. scr1.png
          scr1.png
          50 kB

        Issue Links

          Activity

            People

              scabanovich Viacheslav Kabanovich (Inactive)
              lincolnthree Lincoln Baxter III (Inactive)
              Isaac Rooskov Isaac Rooskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: