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

Object
  extended by GenClass
      extended by ClientInitializer

public class ClientInitializer
extends GenClass

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(ControlClient controlClient)
          Constructs a new ClientInitializer class
 
Method Summary
 String getClassName()
          Returns the fully qualfied classname of the ClientInitializer
 ControlClient getControlClient()
          Returns the ControlBean implementation instance
 String getPackage()
          Returns the package name of the ClientInitializer
 ArrayList<GenField> 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()
          Returns the super class for this class
 boolean isRootPackage()
          Is the ClientInitializer in the root package?
static boolean needsReflection(GenField genField)
          Returns true if the initializer will use Reflection to initialize the field, false otherwise.
 
Methods inherited from class GenClass
getCheckOutput, getGeneratedTypes, getGenerateOutput, hasSuperClass
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInitializer

protected ClientInitializer(ControlClient 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

Specified by:
getPackage in class GenClass

isRootPackage

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


getShortName

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

Specified by:
getShortName in class GenClass

getClassName

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

Specified by:
getClassName in class GenClass

getControlClient

public ControlClient getControlClient()
Returns the ControlBean implementation instance


getSuperClass

public ClientInitializer getSuperClass()
Description copied from class: GenClass
Returns the super class for this class

Specified by:
getSuperClass in class GenClass

needsReflection

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


getReflectFields

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