org.apache.beehive.controls.api.bean
Interface ControlChecker

All Known Implementing Classes:
DefaultControlChecker

public interface ControlChecker

The ControlChecker interface is implemented by control authors wishing to enforce rich semantic validation on extension and field instance declarations of their controls. By supplying a ControlChecker implementation (a "checker") and associating it with your control's public interface, when an extension (.jcx) of your control is processed at build-time, the checker will be invoked and can do rich validation of the jcx type and field instances via introspection and analysis of the jcx's type structure, signatures and annotations.

Checkers are instantiated by, and required to implement, a no-arg constructor. They are provided with type information and context via the Sun mirror API.


Method Summary
 void check(Declaration decl, AnnotationProcessorEnvironment env)
          Invoked by the control build-time infrastructure to process a declaration of a control extension (ie, an interface annotated with @ControlExtension), or a field instance of a control type.
 

Method Detail

check

void check(Declaration decl,
           AnnotationProcessorEnvironment env)
Invoked by the control build-time infrastructure to process a declaration of a control extension (ie, an interface annotated with @ControlExtension), or a field instance of a control type.