Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## juzu
Annotation Type Path

    @Retention(value=RUNTIME)
    @Qualifier
    public @interface Path

Defines the path to a resource that can be injected in Juzu.

## Injecting templates

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.Content myView() {
              return index.render();
           }
        }

`

Author:
  Julien Viet

Required Element Summary
`String` | `value` The path value.

Element Detail

### value

    public abstract String value

  The path value.

  Returns:
    the path value

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2014 eXo Platform SAS. All rights reserved.