|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Available
Declares a method as being responsible for deciding if a template can be used on a specific page. The method must
accept an argument of type Content
and return boolean. It should not throw a checked
exception. If defined in a super class the method will be detected and used.
@Available public boolean isAvailable(Content node) { ... }
Template
,
Content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |