info.magnolia.module.blossom.annotation
Annotation Type Available


@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.

For example:

 @Available
 public boolean isAvailable(Content node) { ... }
 

Since:
1.1.1
See Also:
Template, Content



Copyright © 2009-2011 Magnolia International Ltd.. All Rights Reserved.