|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.MvcBundle<VIEW,CTRL,MODULE>
VIEW - Type of view.CTRL - Type of controller.public final class MvcBundle<VIEW extends org.fuin.apps4j.base.View<CTRL>,CTRL extends org.fuin.apps4j.base.Controller<VIEW>,MODULE>
A unit consisting of a Controller and a View and eventually a
Module.
| Constructor Summary | |
|---|---|
MvcBundle()
|
|
| Method Summary | |
|---|---|
void |
generateClasses()
Generates all necessary MVC classes. |
CTRL |
getCtrlImpl()
Returns the controller implementation. |
Class<? extends CTRL> |
getCtrlIntf()
Returns controller interface. |
Class<? extends AbstractControllerQueue<CTRL,VIEW>> |
getCtrlQueueClass()
Returns the controller queue class. |
ExecutorService |
getExecutorService()
Returns the executor service. |
Class<? extends AbstractModuleImpl> |
getModuleClass()
Returns them module class. |
Class<? extends org.fuin.apps4j.base.ModuleImplIntf> |
getModuleImplIntf()
Returns the module implementation interface. |
Class<? extends MODULE> |
getModuleIntf()
Returns the module interface. |
String |
getName()
Returns the name of the bundle. |
String |
getPkg()
Returns the package used for the generated classes. |
int |
getQueueCapacity()
Returns the queue capacity. |
File |
getSrcDir()
Returns the directory to write a copy of the generated source to. |
Class<? extends AbstractToControllerDispatcher<org.fuin.apps4j.base.Controller<VIEW>,VIEW>> |
getToCtrlDispClass()
Returns the controller dispatcher class. |
Class<? extends AbstractToViewDispatcher<VIEW,CTRL>> |
getToViewDispClass()
Returns the view dispatcher class. |
VIEW |
getViewImpl()
Returns the view implementation. |
Class<? extends VIEW> |
getViewIntf()
Returns the view interface. |
void |
setCtrlImpl(CTRL ctrlImpl)
Sets the controller implementation. |
void |
setCtrlIntf(Class<? extends CTRL> ctrlIntf)
Sets the controller interface. |
void |
setExecutorService(ExecutorService executorService)
Sets the executor service. |
void |
setModuleIntf(Class<? extends MODULE> moduleIntf)
Sets the module interface. |
void |
setName(String name)
Sets the name of the bundle. |
void |
setPkg(String pkg)
Sets the package of the generated classes. |
void |
setQueueCapacity(int queueCapacity)
Sets the capacity for the controller queue. |
void |
setSrcDir(File srcDir)
Sets the source directory. |
void |
setViewImpl(VIEW viewImpl)
Sets the view implementation. |
void |
setViewIntf(Class<? extends VIEW> viewIntf)
Sets the view interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MvcBundle()
| Method Detail |
|---|
public final void setName(String name)
name - Base name.public final void setPkg(String pkg)
pkg - Package for this bundle.public final void setCtrlIntf(Class<? extends CTRL> ctrlIntf)
ctrlIntf - Controller interface.public final void setCtrlImpl(CTRL ctrlImpl)
ctrlImpl - Controller implementation.public final void setViewIntf(Class<? extends VIEW> viewIntf)
viewIntf - View interface.public final void setViewImpl(VIEW viewImpl)
viewImpl - View implementation.public final void setModuleIntf(Class<? extends MODULE> moduleIntf)
moduleIntf - Module interface or null.public final void setExecutorService(ExecutorService executorService)
executorService - value to set.public final void setQueueCapacity(int queueCapacity)
queueCapacity - Capacity-public final void setSrcDir(File srcDir)
srcDir - Source directory.public final Class<? extends VIEW> getViewIntf()
public final Class<? extends AbstractToViewDispatcher<VIEW,CTRL>> getToViewDispClass()
public final Class<? extends AbstractControllerQueue<CTRL,VIEW>> getCtrlQueueClass()
public final Class<? extends AbstractModuleImpl> getModuleClass()
public final Class<? extends AbstractToControllerDispatcher<org.fuin.apps4j.base.Controller<VIEW>,VIEW>> getToCtrlDispClass()
public final Class<? extends CTRL> getCtrlIntf()
public final Class<? extends MODULE> getModuleIntf()
null.public final Class<? extends org.fuin.apps4j.base.ModuleImplIntf> getModuleImplIntf()
public final void generateClasses()
public final String getName()
public final String getPkg()
public final CTRL getCtrlImpl()
public final VIEW getViewImpl()
public final ExecutorService getExecutorService()
public final int getQueueCapacity()
public final File getSrcDir()
null if no sources should be generated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||