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

Object
  extended by ClientInitializer

public class ClientInitializer
extends Object

The ClientInitializer represents a generated class that contains the code necessary to initialize a client that uses controls declaratively (via Control and EventHandler annotations).


Constructor Summary
protected ClientInitializer(AptControlClient controlClient)
          Constructs a new ClientInitializer class
 
Method Summary
 String getClassName()
          Returns the fully qualfied classname of the ClientInitializer
 AptControlClient getControlClient()
          Returns the ControlBean implementation instance
 String getPackage()
          Returns the package name of the ClientInitializer
 ArrayList<AptField> getReflectFields()
          Returns the list of impl class fields that must be initialized using Reflection
 String getShortName()
          Returns the unqualified classname of the ClientInitializer
 ClientInitializer getSuperClass()
           
 boolean isRootPackage()
          Is the ClientInitializer in the root package?
static boolean needsReflection(AptField genField)
          Returns true if the initializer will use Reflection to initialize the field, false otherwise.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInitializer

protected ClientInitializer(AptControlClient controlClient)
Constructs a new ClientInitializer class

Parameters:
controlClient - the control client this initializer will target
Method Detail

getPackage

public String getPackage()
Returns the package name of the ClientInitializer


isRootPackage

public boolean isRootPackage()
Is the ClientInitializer in the root package?


getShortName

public String getShortName()
Returns the unqualified classname of the ClientInitializer


getClassName

public String getClassName()
Returns the fully qualfied classname of the ClientInitializer


getControlClient

public AptControlClient getControlClient()
Returns the ControlBean implementation instance


getSuperClass

public ClientInitializer getSuperClass()

needsReflection

public static boolean needsReflection(AptField genField)
Returns true if the initializer will use Reflection to initialize the field, false otherwise.


getReflectFields

public ArrayList<AptField> getReflectFields()
Returns the list of impl class fields that must be initialized using Reflection