org.apache.tapestry5.ioc.annotations
Annotation Type InjectResource


Deprecated. Deprecated in Tapestry 5.3, to be removed in a later release. Use Inject instead.

@Target(value=FIELD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value=SERVICE)
public @interface InjectResource

Annotation used with field injection when the desired injection value is a resource (such as a service id, service configuration, or logger) and not an object obtained from the MasterObjectProvider.

In Tapestry 5.3, the logic for this was changed so that it is treated the same as Inject. This reflects what people usually want.



Copyright © 2003-2012 The Apache Software Foundation.