org.apache.beehive.controls.runtime.bean
Class ClientInitializer

Object
  extended by ClientInitializer

public abstract class ClientInitializer
extends Object

The ClientInitializer class is an abstract base class that all generated Control client initializer classes will extend. It provides common utilities and supporting code for initialization, and has a shared package relationship with the base ControlBean class providing access to internals not available in a more general context.


Constructor Summary
ClientInitializer()
           
 
Method Summary
protected static void enforceVersionRequired(ControlBean control, VersionRequired versionRequired)
          Enforces the VersionRequired annotation at runtime (called when an instance of a control is annotated with VersionRequired).
static PropertyMap getAnnotationMap(ControlBeanContext cbc, AnnotatedElement annotElem)
          Returns the annotation map for the specified element.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInitializer

public ClientInitializer()
Method Detail

enforceVersionRequired

protected static void enforceVersionRequired(ControlBean control,
                                             VersionRequired versionRequired)
Enforces the VersionRequired annotation at runtime (called when an instance of a control is annotated with VersionRequired). Throws a ControlException if enforcement fails.

Parameters:
versionRequired - the value of the VersionRequired annotation on a control field

getAnnotationMap

public static PropertyMap getAnnotationMap(ControlBeanContext cbc,
                                           AnnotatedElement annotElem)
Returns the annotation map for the specified element.