org.apache.geronimo.console.cli
Class TextController

java.lang.Object
  extended byorg.apache.geronimo.console.cli.TextController
Direct Known Subclasses:
AddServer, ConnectDeploymentManager, ControlDeployments, DeploymentOptions, DistributeModule, EditServerSpecificDD, InitializeEJBJAR, InitializeWAR, ListDeployments, LoadServerSpecificDD, ProgressMonitor, SaveServerSpecificDD, SelectDistributedModules, SelectModule, SelectServer, TopLevel, WorkWithEJBJAR, WorkWithWAR

public abstract class TextController
extends Object

Base class for all controllers for text-based screens. Generally a subclass will paint information to the screen and then accept user input, possibly repeating or invoking other controllers before returning to the caller.

Version:
$Revision: 1.5 $ $Date: 2004/07/16 04:39:41 $

Field Summary
protected  DeploymentContext context
           
 
Constructor Summary
TextController(DeploymentContext context)
           
 
Method Summary
protected  javax.enterprise.deploy.spi.Target[] available(javax.enterprise.deploy.spi.Target[] all, javax.enterprise.deploy.spi.Target[] selected)
           
protected  javax.enterprise.deploy.spi.TargetModuleID[] available(javax.enterprise.deploy.spi.TargetModuleID[] all, javax.enterprise.deploy.spi.TargetModuleID[] selected)
           
protected  boolean confirmModuleAction(String action)
           
protected  boolean ensureConnected()
           
abstract  void execute()
           
protected  void initializeDConfigBean(javax.enterprise.deploy.spi.DConfigBean dcb)
          Marches recursively through the DConfigBean tree to initialize DConfigBeans for all the interesting DDBeans.
protected  void newScreen(String title)
           
protected  void print(String s)
           
protected  void println(String s)
           
protected  String truncate(String s, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected final DeploymentContext context
Constructor Detail

TextController

public TextController(DeploymentContext context)
Method Detail

ensureConnected

protected boolean ensureConnected()

newScreen

protected void newScreen(String title)

print

protected void print(String s)

println

protected void println(String s)

truncate

protected String truncate(String s,
                          int size)

execute

public abstract void execute()

available

protected javax.enterprise.deploy.spi.Target[] available(javax.enterprise.deploy.spi.Target[] all,
                                                         javax.enterprise.deploy.spi.Target[] selected)

available

protected javax.enterprise.deploy.spi.TargetModuleID[] available(javax.enterprise.deploy.spi.TargetModuleID[] all,
                                                                 javax.enterprise.deploy.spi.TargetModuleID[] selected)

confirmModuleAction

protected boolean confirmModuleAction(String action)
                               throws IOException
Throws:
IOException

initializeDConfigBean

protected void initializeDConfigBean(javax.enterprise.deploy.spi.DConfigBean dcb)
                              throws javax.enterprise.deploy.spi.exceptions.ConfigurationException
Marches recursively through the DConfigBean tree to initialize DConfigBeans for all the interesting DDBeans. Once this is done, and DDBean changes need to be relayed to the DConfigBeans that listn on them.

Throws:
javax.enterprise.deploy.spi.exceptions.ConfigurationException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.