Hi!

The @Scope can't be used in fields: it wouldn't compile (@Scope is
defined with @Target(value={TYPE,METHOD})). In addition, each service
has only one scope, defined in its builder method. From
http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html:

"Each service has a lifecycle that controls when the service
implementation is instantiated."
"Service lifecycle is specified using the @Scope annotation, which is
attached to a builder method." When this annotation is not present,
the default scope, "singleton" is used."

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to