org.fuin.apps4swing
Class ManualMvcContext

java.lang.Object
  extended by org.fuin.apps4swing.AbstractMvcContext
      extended by org.fuin.apps4swing.ManualMvcContext

public final class ManualMvcContext
extends AbstractMvcContext

Version that manually (without Spring) ties the MVC objects together. This should not be used in production. Some kind of dependency injection (See SpringMvcContext) is the preferred solution.


Constructor Summary
ManualMvcContext()
          Default constructor.
 
Method Summary
 AbstractModuleImpl getModuleImpl(MvcBundle bundle)
          Returns the instance of the "Module" for the given bundle.
 AbstractToControllerDispatcher getToControllerDispatcher(MvcBundle bundle)
          Returns the instance of the "ToControllerDispatcher" for the given bundle.
 AbstractToViewDispatcher getToViewDispatcher(MvcBundle bundle)
          Returns the instance of the "ToViewDispatcher" for the given bundle.
 void init()
          Creates instances of all beans and connects them.
 
Methods inherited from class org.fuin.apps4swing.AbstractMvcContext
connectControllerQueue, connectModule, connectToCtrlDispatcher, connectToViewDispatcher, getBundles, setBundles, setBundles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualMvcContext

public ManualMvcContext()
Default constructor.

Method Detail

init

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

Specified by:
init in class AbstractMvcContext

getToViewDispatcher

public final AbstractToViewDispatcher getToViewDispatcher(MvcBundle bundle)
Returns the instance of the "ToViewDispatcher" for the given bundle.

Parameters:
bundle - Bundle.
Returns:
Instance for use in a controller.

getToControllerDispatcher

public final AbstractToControllerDispatcher getToControllerDispatcher(MvcBundle bundle)
Returns the instance of the "ToControllerDispatcher" for the given bundle.

Parameters:
bundle - Bundle.
Returns:
Instance for use in a view.

getModuleImpl

public final AbstractModuleImpl getModuleImpl(MvcBundle bundle)
Returns the instance of the "Module" for the given bundle.

Parameters:
bundle - Bundle.
Returns:
Instance for "third party" use.


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