org.fuin.apps4swing
Class ControllerViewConnector<CTRL extends org.fuin.apps4j.Controller<VIEW>,VIEW extends org.fuin.apps4j.View<CTRL>>

java.lang.Object
  extended by org.fuin.apps4swing.ControllerViewConnector<CTRL,VIEW>
Type Parameters:
CTRL - Type of controller.
VIEW - Type of view.

public class ControllerViewConnector<CTRL extends org.fuin.apps4j.Controller<VIEW>,VIEW extends org.fuin.apps4j.View<CTRL>>
extends java.lang.Object

Connects the controller and the view.


Constructor Summary
ControllerViewConnector(java.lang.String name, java.lang.String ctrlPkg, java.lang.Class<?> ctrlIntf, CTRL ctrlImpl, java.lang.String viewPkg, java.lang.Class<?> viewIntf, VIEW viewImpl, java.lang.Class<?> ctrlQueueIntf, java.util.concurrent.ExecutorService executorService, int queueCapacity)
          Constructor with all possible values.
ControllerViewConnector(java.lang.String name, java.lang.String ctrlPkg, java.lang.Class<?> ctrlIntf, CTRL ctrlImpl, java.lang.String viewPkg, java.lang.Class<?> viewIntf, VIEW viewImpl, java.util.concurrent.ExecutorService executorService, int queueCapacity)
          Constructor with ctrlQueueIntf equal to ctrlIntf.
 
Method Summary
 CTRL getControllerQueue()
          Returns the generated controller queue implementation.
 java.util.concurrent.ExecutorService getExecutorService()
          Returns the executor service used for the generated implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerViewConnector

public ControllerViewConnector(java.lang.String name,
                               java.lang.String ctrlPkg,
                               java.lang.Class<?> ctrlIntf,
                               CTRL ctrlImpl,
                               java.lang.String viewPkg,
                               java.lang.Class<?> viewIntf,
                               VIEW viewImpl,
                               java.util.concurrent.ExecutorService executorService,
                               int queueCapacity)
Constructor with ctrlQueueIntf equal to ctrlIntf.

Parameters:
name - Basic name that is shared by controller and view. Used as prefix for the generated classes.
ctrlPkg - Package of the generated controller classes.
ctrlIntf - Controller interface to generate an implementation for.
ctrlImpl - The "real" controller implementation.
viewPkg - Package of the generated view classes.
viewIntf - View interface to generate an implementation for.
viewImpl - The "real" view implementation.
executorService - Executor service to use.
queueCapacity - Capacity of the ArrayBlockingQueue.

ControllerViewConnector

public ControllerViewConnector(java.lang.String name,
                               java.lang.String ctrlPkg,
                               java.lang.Class<?> ctrlIntf,
                               CTRL ctrlImpl,
                               java.lang.String viewPkg,
                               java.lang.Class<?> viewIntf,
                               VIEW viewImpl,
                               java.lang.Class<?> ctrlQueueIntf,
                               java.util.concurrent.ExecutorService executorService,
                               int queueCapacity)
Constructor with all possible values.

Parameters:
name - Basic name that is shared by controller and view. Used as prefix for the generated classes.
ctrlPkg - Package of the generated controller classes.
ctrlIntf - Controller interface to generate an implementation for.
ctrlImpl - The "real" controller implementation.
viewPkg - Package of the generated view classes.
viewIntf - View interface to generate an implementation for.
viewImpl - The "real" view implementation.
ctrlQueueIntf - Interface the controller queue implements. If the controller acts as a ChildController this interface often extends ctrlIntf and adds method used by the ParentController.
executorService - Executor service to use.
queueCapacity - Capacity of the ArrayBlockingQueue.
Method Detail

getControllerQueue

public final CTRL getControllerQueue()
Returns the generated controller queue implementation.

Returns:
Controller queue.

getExecutorService

public final java.util.concurrent.ExecutorService getExecutorService()
Returns the executor service used for the generated implementations.

Returns:
Executor.


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