|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Qualifier public @interface Path
Defines the path to a resource that can be injected in Juzu.
Templates can be injected in a Juzu applications, the templates will be located thanks to the path
value() of the annotation and injected as a Template class. For example, a
template can be injected in a controller:
public class MyController {
@Inject @Path("index.gtmpl") Template index;
@View
public Response.Render myView() {
return index.render();
}
}
| Required Element Summary | |
|---|---|
String |
value
The path value. |
| Element Detail |
|---|
public abstract String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||