Tapestry 5
  1. Tapestry 5
  2. TAP5-430

Annotation for services to indicate that the service should not be decorated

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.0
    • Fix Version/s: 5.1.0.0
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      It is often nice to apply decorators to wide ranges of services using regular expression, or glob, matching. However, frequently this results in problems when the services being decorated are dependent on services that are affected by the decoration. For example, if you decorate many of the services related to MasterObjectProvider, you will likely get a cycle dependency exception.

      It would be nice if there was an annotation that indicates that the service should be ignored for decoration, much as the limited number of services provided by TapestryIOCModule are.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Howard M. Lewis Ship added a comment -

        @PreventServiceDecoration: can be applied to a builder method, to a constructor (via bind()), or to a module class (to apply to all services in the module).

        Show
        Howard M. Lewis Ship added a comment - @PreventServiceDecoration: can be applied to a builder method, to a constructor (via bind()), or to a module class (to apply to all services in the module).
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.1.0.0 [ 12313428 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development