Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1443

org.apache.tapestry.annotations.Service annotation is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.4
    • 5.0.5
    • tapestry-core
    • None

    Description

      org.apache.tapestry.annotations.Service annotation does not work - it does not help to match service by id (for example, to resolve ambiguity). I think, additional ObjectProvider is required (that is executed before "Alias" object provider) with provide method like the following:

      public <T> T provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator) {
      Service service = annotationProvider.getAnnotation(Service.class);
      if (service == null) return null;
      String expanded = _symbolSource.expandSymbols(service.value());
      return locator.getService(expanded, objectType);
      }

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            wfrag Ivan Dubrov
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: