org.fuin.apps4swing
Class AbstractMvcContext

java.lang.Object
  extended by org.fuin.apps4swing.AbstractMvcContext
Direct Known Subclasses:
ManualMvcContext, SpringMvcContext

public abstract class AbstractMvcContext
extends Object

Collection of MvcBundle objects that are initialized together.


Constructor Summary
AbstractMvcContext()
           
 
Method Summary
protected  void connectControllerQueue(AbstractControllerQueue ctrlQueue, AbstractToViewDispatcher toViewDispatcher, org.fuin.apps4j.base.Controller ctrlImpl, ExecutorService executorService, int queueCapacity)
          Connects "ControllerQueue" and other objects.
protected  void connectModule(AbstractModuleImpl module, AbstractControllerQueue ctrlQueue)
          Connects "Module" and other objects.
protected  void connectToCtrlDispatcher(AbstractToControllerDispatcher toCtrlDispatcher, AbstractControllerQueue ctrlQueue, ExecutorService executorService)
          Connects "ToControllerDispatcher" and other objects.
protected  void connectToViewDispatcher(AbstractToViewDispatcher toViewDispatcher, org.fuin.apps4j.base.View viewImpl)
          Connects "ToViewDispatcher" and other objects.
 List<MvcBundle> getBundles()
          Returns the bundles.
abstract  void init()
          Creates instances of all beans and connects them.
 void setBundles(List<MvcBundle> bundles)
          Sets the MVC bundles.
 void setBundles(MvcBundle... bundle)
          Sets the MVC bundles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMvcContext

public AbstractMvcContext()
Method Detail

setBundles

public final void setBundles(MvcBundle... bundle)
Sets the MVC bundles.

Parameters:
bundle - Bundle array

setBundles

public final void setBundles(List<MvcBundle> bundles)
Sets the MVC bundles.

Parameters:
bundles - Bundles.

getBundles

public final List<MvcBundle> getBundles()
Returns the bundles.

Returns:
Immutable bundle list.

connectToViewDispatcher

protected final void connectToViewDispatcher(AbstractToViewDispatcher toViewDispatcher,
                                             org.fuin.apps4j.base.View viewImpl)
Connects "ToViewDispatcher" and other objects.

Parameters:
toViewDispatcher - Object to set it's properties.
viewImpl - View to set.

connectControllerQueue

protected final void connectControllerQueue(AbstractControllerQueue ctrlQueue,
                                            AbstractToViewDispatcher toViewDispatcher,
                                            org.fuin.apps4j.base.Controller ctrlImpl,
                                            ExecutorService executorService,
                                            int queueCapacity)
Connects "ControllerQueue" and other objects.

Parameters:
ctrlQueue - Object to set it's properties.
toViewDispatcher - View dispatcher to set.
ctrlImpl - Controller to set.
executorService - Executor service to set.
queueCapacity - Queue capacity to set.

connectToCtrlDispatcher

protected final void connectToCtrlDispatcher(AbstractToControllerDispatcher toCtrlDispatcher,
                                             AbstractControllerQueue ctrlQueue,
                                             ExecutorService executorService)
Connects "ToControllerDispatcher" and other objects.

Parameters:
toCtrlDispatcher - Object to set it's properties.
ctrlQueue - Queue to set.
executorService - Executor service to set.

connectModule

protected final void connectModule(AbstractModuleImpl module,
                                   AbstractControllerQueue ctrlQueue)
Connects "Module" and other objects.

Parameters:
module - Object to set it's properties.
ctrlQueue - Queue to set.

init

public abstract void init()
Creates instances of all beans and connects them.



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