org.fuin.apps4swing
Class MvcBundle<VIEW extends org.fuin.apps4j.base.View<CTRL>,CTRL extends org.fuin.apps4j.base.Controller<VIEW>,MODULE>

java.lang.Object
  extended by org.fuin.apps4swing.MvcBundle<VIEW,CTRL,MODULE>
Type Parameters:
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>
extends Object

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

MvcBundle

public MvcBundle()
Method Detail

setName

public final void setName(String name)
Sets the name of the bundle.

Parameters:
name - Base name.

setPkg

public final void setPkg(String pkg)
Sets the package of the generated classes.

Parameters:
pkg - Package for this bundle.

setCtrlIntf

public final void setCtrlIntf(Class<? extends CTRL> ctrlIntf)
Sets the controller interface.

Parameters:
ctrlIntf - Controller interface.

setCtrlImpl

public final void setCtrlImpl(CTRL ctrlImpl)
Sets the controller implementation.

Parameters:
ctrlImpl - Controller implementation.

setViewIntf

public final void setViewIntf(Class<? extends VIEW> viewIntf)
Sets the view interface.

Parameters:
viewIntf - View interface.

setViewImpl

public final void setViewImpl(VIEW viewImpl)
Sets the view implementation.

Parameters:
viewImpl - View implementation.

setModuleIntf

public final void setModuleIntf(Class<? extends MODULE> moduleIntf)
Sets the module interface.

Parameters:
moduleIntf - Module interface or null.

setExecutorService

public final void setExecutorService(ExecutorService executorService)
Sets the executor service.

Parameters:
executorService - value to set.

setQueueCapacity

public final void setQueueCapacity(int queueCapacity)
Sets the capacity for the controller queue.

Parameters:
queueCapacity - Capacity-

setSrcDir

public final void setSrcDir(File srcDir)
Sets the source directory.

Parameters:
srcDir - Source directory.

getViewIntf

public final Class<? extends VIEW> getViewIntf()
Returns the view interface.

Returns:
View interface.

getToViewDispClass

public final Class<? extends AbstractToViewDispatcher<VIEW,CTRL>> getToViewDispClass()
Returns the view dispatcher class.

Returns:
Class.

getCtrlQueueClass

public final Class<? extends AbstractControllerQueue<CTRL,VIEW>> getCtrlQueueClass()
Returns the controller queue class.

Returns:
Class.

getModuleClass

public final Class<? extends AbstractModuleImpl> getModuleClass()
Returns them module class.

Returns:
Class.

getToCtrlDispClass

public final Class<? extends AbstractToControllerDispatcher<org.fuin.apps4j.base.Controller<VIEW>,VIEW>> getToCtrlDispClass()
Returns the controller dispatcher class.

Returns:
Class.

getCtrlIntf

public final Class<? extends CTRL> getCtrlIntf()
Returns controller interface.

Returns:
Controller interface.

getModuleIntf

public final Class<? extends MODULE> getModuleIntf()
Returns the module interface.

Returns:
Module interface or null.

getModuleImplIntf

public final Class<? extends org.fuin.apps4j.base.ModuleImplIntf> getModuleImplIntf()
Returns the module implementation interface.

Returns:
Module implementation interface.

generateClasses

public final void generateClasses()
Generates all necessary MVC classes.


getName

public final String getName()
Returns the name of the bundle.

Returns:
Unique name.

getPkg

public final String getPkg()
Returns the package used for the generated classes.

Returns:
Package.

getCtrlImpl

public final CTRL getCtrlImpl()
Returns the controller implementation.

Returns:
Controller.

getViewImpl

public final VIEW getViewImpl()
Returns the view implementation.

Returns:
View.

getExecutorService

public final ExecutorService getExecutorService()
Returns the executor service.

Returns:
Executor service.

getQueueCapacity

public final int getQueueCapacity()
Returns the queue capacity.

Returns:
capacity.

getSrcDir

public final File getSrcDir()
Returns the directory to write a copy of the generated source to.

Returns:
Directory or null if no sources should be generated.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.