Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1190

Please allow @Service with no args

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 0.6
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      A user has to type the interface name twice when writing a Service. Would it be possible to have the @Service annotation default to no-args if the class implements only a single interface? (It seems likely that a Service class might often implement only a single interface.)

      -----------------------------------------------------------------
      @Service(SimpleService.class)
      public class SimpleServiceBean implements SimpleService {

      would become:

      @Service
      public class SimpleServiceBean implements SimpleService {
      -------------------------------------------------------------------

      Thanks for considering this JIRA.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                igarashitm Tomohisa igarashi
                Reporter:
                rick_wagner Rick Wagner
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: