|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.model.ControllerModel<T>
T - A controller interface.public final class ControllerModel<T extends Controller>
Model for generating classes based on a Controller interface.
| Constructor Summary | |
|---|---|
ControllerModel(java.lang.Class controllerInterface)
Constructor with controller interface the generated classes are based on. |
|
ControllerModel(java.lang.String basePackage,
java.lang.Class controllerInterface)
Constructor with controller interface the generated classes are based on and the destination package for the generated classes. |
|
ControllerModel(java.lang.String basePackage,
java.lang.Class controllerInterface,
org.fuin.srcgen4javassist.ByteCodeGenerator generator)
Constructor with controller interface, destination package for the generated classes and byte code generator. |
|
| Method Summary | |
|---|---|
ControllerPair<T> |
createOnTheFly(JmsJndiEnvironment env,
java.lang.String topicName,
Controller ctrl)
Creates all classes "on-the-fly" with Javassist and then returns the necessary instances to work with. |
void |
createSource(java.io.File srcDir)
Creates the source classes for the model. |
org.fuin.srcgen4javassist.SgClass |
getControllerInterface()
Returns the controller interface the model is based on. |
org.fuin.srcgen4javassist.ByteCodeGenerator |
getGenerator()
Returns the byte code generator the model uses. |
java.util.List<org.fuin.srcgen4javassist.SgClass> |
getModelClasses()
Returns a list of the generated model classes. |
java.lang.String |
getPackageName()
Name of the interface converted into a package name. |
org.fuin.srcgen4javassist.SgClassPool |
getPool()
Returns the class pool the model uses. |
java.lang.String |
getSimpleName()
Returns the name of the interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerModel(java.lang.Class controllerInterface)
controllerInterface - Interface.
public ControllerModel(java.lang.String basePackage,
java.lang.Class controllerInterface)
basePackage - Package all generated classes are inside.controllerInterface - Interface.
public ControllerModel(java.lang.String basePackage,
java.lang.Class controllerInterface,
org.fuin.srcgen4javassist.ByteCodeGenerator generator)
basePackage - Package all generated classes are inside.controllerInterface - Interface.generator - Byte code generator - If NULL a default byte code generator
instance will be created and used.| Method Detail |
|---|
public final java.util.List<org.fuin.srcgen4javassist.SgClass> getModelClasses()
public final org.fuin.srcgen4javassist.SgClass getControllerInterface()
public final java.lang.String getPackageName()
public final java.lang.String getSimpleName()
public final ControllerPair<T> createOnTheFly(JmsJndiEnvironment env,
java.lang.String topicName,
Controller ctrl)
createSource(..) to generate source instead of bytecode
env - Environment to use for the instances.topicName - Topic name to use.ctrl - Real controller implementation doing the work.
public void createSource(java.io.File srcDir)
throws java.io.IOException
createOnTheFly(..) to generate bytecode instead of source.
srcDir - Destination directory.
java.io.IOException - Error creating the classes.public final org.fuin.srcgen4javassist.ByteCodeGenerator getGenerator()
public final org.fuin.srcgen4javassist.SgClassPool getPool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||