org.apache.geronimo.console.cli
Class DConfigBeanConfigurator

java.lang.Object
  extended byorg.apache.geronimo.console.cli.DConfigBeanConfigurator

public class DConfigBeanConfigurator
extends Object

Knows how to configure a DConfigBean at the command line. The editing process is a series of reads and writes to the provided input and output streams, which basically presents information and a prompt to the user, gathers their input, and repeats. They can navigate through a tree of DConfigBeans and Java Beans, adding, removing, and editing properies on beans where appropriate.

Note: it might make sense to break this class up eventually. Particularly if we want to allow the user to navigate between arbitrary DDBeans (standard DD) and their matching DConfigBeans (server-specific DD). Right now they can only edit one tree at a time, either the whole DDBean tree, or the whole DConfigBean tree.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 09:58:41 $

Constructor Summary
DConfigBeanConfigurator(javax.enterprise.deploy.spi.DConfigBeanRoot bean, PrintWriter out, BufferedReader in)
          Creates a new instance, based on the supplied config bean root and input and output streams.
 
Method Summary
 boolean configure()
          Begins the process of configuring the DConfigBean tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DConfigBeanConfigurator

public DConfigBeanConfigurator(javax.enterprise.deploy.spi.DConfigBeanRoot bean,
                               PrintWriter out,
                               BufferedReader in)
Creates a new instance, based on the supplied config bean root and input and output streams.

Method Detail

configure

public boolean configure()
Begins the process of configuring the DConfigBean tree. When this method returns, the user has finished editing the DConfigBeans (or a fatal error caused the editing to abort).

Returns:
true if the editing completed normally (false if there was a fatal error).


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