|
||||||||||
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 can
accept an argument of type Node
or Content
, a object of type
TemplateDefinition
which is the template definition of the current template
and must 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(Node node, TemplateDefinition templateDefinition) { ... }
Template
,
Content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |