org.jboss.example.dna.repository
Class ConsoleInput

java.lang.Object
  extended by org.jboss.example.dna.repository.ConsoleInput
All Implemented Interfaces:
UserInterface

public class ConsoleInput
extends Object
implements UserInterface

Author:
Randall Hauch

Constructor Summary
ConsoleInput(RepositoryClient client, String[] args)
          Construct the console input and prompt for user input to interact with the RepositoryClient.
 
Method Summary
 void displayError(String activity, Throwable t)
          Display the supplied error that happened during the activity.
 CallbackHandler getCallbackHandler()
          
 String getLocationOfCndFiles()
          
 String getLocationOfRepositoryFiles()
          
 File getRepositoryConfiguration()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleInput

public ConsoleInput(RepositoryClient client,
                    String[] args)
Construct the console input and prompt for user input to interact with the RepositoryClient.

Parameters:
client - the client that should be used; may not be null
args - the command-line arguments; may not be null but may be empty
Method Detail

displayError

public void displayError(String activity,
                         Throwable t)
Display the supplied error that happened during the activity.

Specified by:
displayError in interface UserInterface
Parameters:
activity - the activity; may not be null but may be empty
t - the exception; may not be null

getLocationOfRepositoryFiles

public String getLocationOfRepositoryFiles()

Specified by:
getLocationOfRepositoryFiles in interface UserInterface
See Also:
UserInterface.getLocationOfRepositoryFiles()

getRepositoryConfiguration

public File getRepositoryConfiguration()

Specified by:
getRepositoryConfiguration in interface UserInterface
See Also:
UserInterface.getRepositoryConfiguration()

getLocationOfCndFiles

public String getLocationOfCndFiles()

Specified by:
getLocationOfCndFiles in interface UserInterface
See Also:
UserInterface.getLocationOfCndFiles()

getCallbackHandler

public CallbackHandler getCallbackHandler()

Specified by:
getCallbackHandler in interface UserInterface
See Also:
UserInterface.getCallbackHandler()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.