Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Scrollbar
Starting from Tapestry
Since
since
5.3
, it's possible to use

JSR-330 annotations can be used for injection in Tapestry 5.3 and later.

Div
stylefloat:right
titleRelated Articles
classaui-label
Content by Label
showLabelsfalse
showSpacefalse
titleRelated Articles
cqllabel = "injection" and space = currentSpace()

The following table demonstrates that most of annotations in Tapestry IoC and JSR-330 are interchangeable. However, there are few differences in semantics.

...

In Tapestry, it is exactly the other way around. By default a service is a singleton. Once an instance is created, it is reused for injection. Another available scope is is perthread, which exists primarily to help multi-threaded servlet applications. If a service has _perthread _scopehas perthread scope, it is recreated for every incoming request.

 

Scrollbar