geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r582195 - in /geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console: PromptReader.java TerminalInfo.java
Date Fri, 05 Oct 2007 10:26:13 GMT
Author: jdillon
Date: Fri Oct  5 03:26:09 2007
New Revision: 582195

URL: http://svn.apache.org/viewvc?rev=582195&view=rev
Log:
Add constructors for non-plexus usage

Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/PromptReader.java
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/TerminalInfo.java

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/PromptReader.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/PromptReader.java?rev=582195&r1=582194&r2=582195&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/PromptReader.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/PromptReader.java
Fri Oct  5 03:26:09 2007
@@ -35,7 +35,7 @@
  *
  * @version $Rev$ $Date$
  */
-@Component(role= PromptReader.class, instantiationStrategy="per-lookup")
+@Component(role=PromptReader.class, instantiationStrategy="per-lookup")
 public class PromptReader
     implements Initializable
 {
@@ -48,6 +48,13 @@
     private char mask = '*';
 
     private ConsoleReader reader;
+
+    public PromptReader() {}
+    
+    public PromptReader(final Terminal terminal, final IO io) {
+        this.terminal = terminal;
+        this.io = io;
+    }
 
     public char getMask() {
         return mask;

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/TerminalInfo.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/TerminalInfo.java?rev=582195&r1=582194&r2=582195&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/TerminalInfo.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/console/TerminalInfo.java
Fri Oct  5 03:26:09 2007
@@ -41,6 +41,12 @@
     @Requirement
     private Terminal terminal;
 
+    public TerminalInfo() {}
+    
+    public TerminalInfo(final Terminal terminal) {
+        this.terminal = terminal;
+    }
+
     public void initialize() throws InitializationException {
         log.debug("Using terminal: {}", terminal);
         log.debug("  Supported: {}", terminal.isSupported());



Mime
View raw message