Starting from Tapestry 5.3, it's possible to use JSR-330 annotations for injection.
The following table demonstrates that most of annotations in Tapestry IoC and JSR-330 are interchangeable. However, there are few differences in semantics.
JSR-330 |
Tapestry |
Comment |
---|---|---|
@Inject |
@Inject |
- |
@Inject |
@InjectService |
- |
@Scope |
@Scope |
- |
@Qualifier |
- |
Tapestry marker annotations don’t need any qualifier annotations |
@Singleton |
- |
By default all Tapestry services are singletons |