You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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
javax.inject

Tapestry
org.apache.tapestry5.ioc.annotations

Comment

@Inject

@Inject

-

@Inject
@Named

@InjectService

-

@Scope

@Scope

-

@Qualifier

-

Tapestry marker annotations don’t need any qualifier annotations

@Singleton

-

By default all Tapestry services are singletons

  • No labels