SHL-42 - Refactor package name to remove reference to roo

This commit is contained in:
Mark Pollack
2012-07-14 13:34:25 -04:00
parent 5a941fc4be
commit 472b93777f
119 changed files with 334 additions and 307 deletions

View File

@@ -19,7 +19,7 @@ import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.roo.shell.CliCommand;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.shell.plugin.support.DefaultBannerProvider;
import org.springframework.stereotype.Component;

View File

@@ -13,10 +13,12 @@ import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.ExitShellRequest;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.ExitShellRequest;
import org.springframework.shell.core.JLineShellComponent;
import org.springframework.shell.core.Shell;
import org.springframework.shell.support.logging.HandlerUtils;
import org.springframework.util.StopWatch;
/**
@@ -81,23 +83,23 @@ public class Bootstrap {
private void createApplicationContext() {
// create parent/base ctx
AnnotationConfigApplicationContext annctx = new AnnotationConfigApplicationContext();
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.StringConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.StringConverter.class);
createAndRegisterBeanDefinition(annctx,
org.springframework.roo.shell.converters.AvailableCommandsConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.BigDecimalConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.BigIntegerConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.BooleanConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.CharacterConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.DateConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.DoubleConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.EnumConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.FloatConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.IntegerConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.LocaleConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.LongConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.ShortConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.roo.shell.converters.StaticFieldConverterImpl.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.JLineShellComponent.class, "shell");
org.springframework.shell.converters.AvailableCommandsConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.BigDecimalConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.BigIntegerConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.BooleanConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.CharacterConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.DateConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.DoubleConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.EnumConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.FloatConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.IntegerConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.LocaleConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.LongConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.ShortConverter.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.StaticFieldConverterImpl.class);
createAndRegisterBeanDefinition(annctx, org.springframework.shell.core.JLineShellComponent.class, "shell");
createAndRegisterBeanDefinition(annctx, org.springframework.shell.converters.SimpleFileConverter.class);
annctx.scan("org.springframework.shell.commands");

View File

@@ -12,11 +12,10 @@ import java.util.Map;
import java.util.logging.Logger;
import org.apache.commons.io.FileUtils;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.shell.commands.OsCommands;
import org.springframework.shell.support.logging.HandlerUtils;
/**
* Not really used much, but keeping for future use
* Used to pass in command line options to customize the shell on launch
*
* @author vnagaraja
*/

View File

@@ -1,8 +1,8 @@
package org.springframework.shell.commands;
import org.springframework.roo.shell.CliCommand;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.ExitShellRequest;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.ExitShellRequest;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.stereotype.Component;
@Component

View File

@@ -3,11 +3,11 @@ package org.springframework.shell.commands;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.roo.shell.CliCommand;
import org.springframework.roo.shell.CliOption;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.SimpleParser;
import org.springframework.shell.JLineShellComponent;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.JLineShellComponent;
import org.springframework.shell.core.SimpleParser;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.stereotype.Component;
/**

View File

@@ -1,9 +1,9 @@
package org.springframework.shell.commands;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.roo.shell.CliCommand;
import org.springframework.roo.shell.CliOption;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.stereotype.Component;
@Component

View File

@@ -3,9 +3,9 @@ package org.springframework.shell.commands;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
import org.springframework.stereotype.Component;
/**

View File

@@ -3,10 +3,10 @@ package org.springframework.shell.commands;
import java.io.IOException;
import java.util.logging.Logger;
import org.springframework.roo.shell.CliCommand;
import org.springframework.roo.shell.CliOption;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.shell.support.logging.HandlerUtils;
import org.springframework.stereotype.Component;
/**

View File

@@ -7,7 +7,7 @@ import java.io.Reader;
import java.util.logging.Logger;
import org.apache.commons.io.IOUtils;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.shell.support.logging.HandlerUtils;
import org.springframework.stereotype.Component;
/**

View File

@@ -6,8 +6,8 @@ import java.util.ResourceBundle;
import java.util.SortedSet;
import java.util.TreeSet;
import org.springframework.roo.shell.AbstractShell;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.core.AbstractShell;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.stereotype.Component;
@Component

View File

@@ -1,11 +1,11 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.roo.shell.SimpleParser;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
import org.springframework.shell.core.SimpleParser;
/**
* Available commands converter.

View File

@@ -1,11 +1,11 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link BigDecimal}.

View File

@@ -1,11 +1,11 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.math.BigInteger;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link BigInteger}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Boolean}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Character}.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.text.DateFormat;
import java.text.ParseException;
@@ -6,9 +6,9 @@ import java.util.Date;
import java.util.List;
import java.util.Locale;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Date}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Double}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Enum}.

View File

@@ -1,13 +1,13 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.io.File;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.FileUtils;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.FileUtils;
/**
* {@link Converter} for {@link File}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Float}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Integer}.

View File

@@ -1,11 +1,11 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import java.util.Locale;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Locale}. Supports locales

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Long}.

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link Short}.

View File

@@ -3,8 +3,7 @@ package org.springframework.shell.converters;
import java.io.File;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.roo.shell.Shell;
import org.springframework.roo.shell.converters.FileConverter;
import org.springframework.shell.core.Shell;
import org.springframework.stereotype.Component;
//@Component

View File

@@ -1,6 +1,6 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import org.springframework.roo.shell.Converter;
import org.springframework.shell.core.Converter;
/**
* Interface for adding and removing classes that provide static fields which should

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
@@ -6,11 +6,11 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.StringUtils;
/**
* A simple {@link Converter} for those classes which provide public static fields to represent possible

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.converters;
package org.springframework.shell.converters;
import java.util.List;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.shell.MethodTarget;
import org.springframework.shell.core.Completion;
import org.springframework.shell.core.Converter;
import org.springframework.shell.core.MethodTarget;
/**
* {@link Converter} for {@link String}.

View File

@@ -1,6 +1,6 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import static org.springframework.roo.support.util.StringUtils.LINE_SEPARATOR;
import static org.springframework.shell.support.util.StringUtils.LINE_SEPARATOR;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
@@ -21,16 +21,18 @@ import java.util.TreeSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.roo.shell.event.AbstractShellStatusPublisher;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.roo.shell.event.ShellStatus;
import org.springframework.roo.shell.event.ShellStatus.Status;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.IOUtils;
import org.springframework.roo.support.util.MathUtils;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.roo.support.util.VersionUtils;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.shell.event.AbstractShellStatusPublisher;
import org.springframework.shell.event.ParseResult;
import org.springframework.shell.event.ShellStatus;
import org.springframework.shell.event.ShellStatus.Status;
import org.springframework.shell.support.logging.HandlerUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.IOUtils;
import org.springframework.shell.support.util.MathUtils;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.shell.support.util.VersionUtils;
/**
* Provides a base {@link Shell} implementation.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
/**
* Utility methods relating to shell option contexts

View File

@@ -1,4 +1,5 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
/**
* Utility methods relating to shell simple parser contexts.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
/**
* Marker interface indicating a provider of one or more shell commands.

View File

@@ -1,7 +1,7 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import org.springframework.roo.support.util.AnsiEscapeCode;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.support.util.AnsiEscapeCode;
import org.springframework.shell.support.util.StringUtils;
public class Completion {

View File

@@ -1,7 +1,11 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.util.List;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
/**
* Converts between Strings (as displayed by and entered via the shell) and Java objects
*

View File

@@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.shell;
package org.springframework.shell.core;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.shell.event.ParseResult;
/**
* Extension interface allowing command provider to be called

View File

@@ -1,6 +1,6 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.shell.event.ParseResult;
/**
* Strategy interface to permit the controlled execution of methods.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
/**
* An immutable representation of a request to exit the shell.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.shell;
package org.springframework.shell.core;
import jline.UnsupportedTerminal;

View File

@@ -1,13 +1,11 @@
package org.springframework.shell;
package org.springframework.shell.core;
import java.util.ArrayList;
import java.util.List;
import jline.Completor;
import org.springframework.roo.shell.Completion;
import org.springframework.roo.shell.Parser;
import org.springframework.roo.support.util.Assert;
import org.springframework.shell.support.util.Assert;
/**
* An implementation of JLine's {@link Completor} interface that delegates to a {@link Parser}.

View File

@@ -1,4 +1,4 @@
package org.springframework.shell;
package org.springframework.shell.core;
import java.io.PrintWriter;
import java.io.StringWriter;
@@ -10,11 +10,10 @@ import java.util.logging.LogRecord;
import jline.ANSIBuffer;
import jline.ConsoleReader;
import org.springframework.roo.shell.ShellPromptAccessor;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.IOUtils;
import org.springframework.roo.support.util.OsUtils;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.IOUtils;
import org.springframework.shell.support.util.OsUtils;
import org.springframework.shell.support.util.StringUtils;
/**
* JDK logging {@link Handler} that emits log messages to a JLine {@link ConsoleReader}.

View File

@@ -1,4 +1,4 @@
package org.springframework.shell;
package org.springframework.shell.core;
import java.io.File;
import java.io.FileDescriptor;
@@ -28,19 +28,15 @@ import jline.ConsoleReader;
import jline.WindowsTerminal;
import org.apache.commons.io.input.ReversedLinesFileReader;
import org.springframework.roo.shell.AbstractShell;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.ExitShellRequest;
import org.springframework.roo.shell.Shell;
import org.springframework.roo.shell.event.ShellStatus;
import org.springframework.roo.shell.event.ShellStatus.Status;
import org.springframework.roo.shell.event.ShellStatusListener;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.ClassUtils;
import org.springframework.roo.support.util.IOUtils;
import org.springframework.roo.support.util.OsUtils;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.roo.support.util.VersionUtils;
import org.springframework.shell.event.ShellStatus;
import org.springframework.shell.event.ShellStatusListener;
import org.springframework.shell.event.ShellStatus.Status;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.ClassUtils;
import org.springframework.shell.support.util.IOUtils;
import org.springframework.shell.support.util.OsUtils;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.shell.support.util.VersionUtils;
/**

View File

@@ -1,4 +1,4 @@
package org.springframework.shell;
package org.springframework.shell.core;
import java.io.IOException;
import java.net.URL;
@@ -14,9 +14,6 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.Lifecycle;
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
import org.springframework.core.io.Resource;
import org.springframework.roo.shell.ExecutionStrategy;
import org.springframework.roo.shell.Parser;
import org.springframework.roo.shell.SimpleParser;
import org.springframework.shell.plugin.BannerProvider;
import org.springframework.shell.plugin.HistoryFileNameProvider;
import org.springframework.shell.plugin.PluginProvider;

View File

@@ -1,11 +1,11 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.lang.reflect.Method;
import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.ObjectUtils;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.support.style.ToStringCreator;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.ObjectUtils;
import org.springframework.shell.support.util.StringUtils;
/**
* A method that can be executed via a shell command.

View File

@@ -1,8 +1,8 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.util.List;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.shell.event.ParseResult;
/**
* Interface for {@link SimpleParser}.

View File

@@ -1,9 +1,9 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.roo.support.util.Assert;
import org.springframework.shell.support.util.Assert;
/**
* Utilities for parsing.

View File

@@ -1,9 +1,9 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.io.File;
import java.util.logging.Level;
import org.springframework.roo.shell.event.ShellStatusProvider;
import org.springframework.shell.event.ShellStatusProvider;
/**
* Specifies the contract for an interactive shell.

View File

@@ -1,4 +1,5 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
/**
* Obtains the prompt used by a {@link Shell}.

View File

@@ -1,10 +1,8 @@
package org.springframework.shell;
package org.springframework.shell.core;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.shell.ExecutionStrategy;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.ReflectionUtils;
import org.springframework.shell.event.ParseResult;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.ReflectionUtils;
/**
* Simple execution strategy for invoking a target method.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.core;
import java.io.ByteArrayOutputStream;
import java.io.File;
@@ -28,16 +28,20 @@ import java.util.regex.Pattern;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.Transformer;
import org.springframework.roo.shell.event.ParseResult;
import org.springframework.roo.support.logging.HandlerUtils;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.CollectionUtils;
import org.springframework.roo.support.util.ExceptionUtils;
import org.springframework.roo.support.util.FileCopyUtils;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.roo.support.util.VersionUtils;
import org.springframework.roo.support.util.XmlElementBuilder;
import org.springframework.roo.support.util.XmlUtils;
import org.springframework.shell.core.annotation.CliAvailabilityIndicator;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.core.annotation.CliOption;
import org.springframework.shell.event.ParseResult;
import org.springframework.shell.support.logging.HandlerUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.CollectionUtils;
import org.springframework.shell.support.util.ExceptionUtils;
import org.springframework.shell.support.util.FileCopyUtils;
import org.springframework.shell.support.util.NaturalOrderComparator;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.shell.support.util.VersionUtils;
import org.springframework.shell.support.util.XmlElementBuilder;
import org.springframework.shell.support.util.XmlUtils;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

View File

@@ -1,10 +1,11 @@
package org.springframework.roo.shell;
package org.springframework.shell.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotates a method that can indicate whether a particular command is presently
* available or not.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -1,10 +1,13 @@
package org.springframework.roo.shell;
package org.springframework.shell.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.shell.core.Converter;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface CliOption {

View File

@@ -1,10 +1,10 @@
package org.springframework.roo.shell.event;
package org.springframework.shell.event;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import org.springframework.roo.shell.event.ShellStatus.Status;
import org.springframework.roo.support.util.Assert;
import org.springframework.shell.event.ShellStatus.Status;
import org.springframework.shell.support.util.Assert;
/**
* Provides a convenience superclass for those shells wishing to publish status messages.

View File

@@ -1,12 +1,12 @@
package org.springframework.roo.shell.event;
package org.springframework.shell.event;
import java.lang.reflect.Method;
import java.util.Arrays;
import org.springframework.roo.shell.Converter;
import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.core.Converter;
import org.springframework.shell.support.style.ToStringCreator;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.StringUtils;
/**
* Immutable representation of the outcome of parsing a given shell line.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell.event;
package org.springframework.shell.event;
/**

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell.event;
package org.springframework.shell.event;
/**
* Implemented by classes that wish to be notified of shell status changes.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell.event;
package org.springframework.shell.event;
/**
* Implemented by shells that support the publication of shell status changes.

View File

@@ -15,15 +15,14 @@
*/
package org.springframework.shell.plugin.support;
import static org.springframework.shell.support.util.StringUtils.LINE_SEPARATOR;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.roo.shell.CommandMarker;
import org.springframework.roo.support.util.VersionUtils;
import org.springframework.shell.plugin.BannerProvider;
import org.springframework.shell.support.util.VersionUtils;
import org.springframework.stereotype.Component;
import static org.springframework.roo.support.util.StringUtils.*;
/**
* Default Banner provider.
*
@@ -32,9 +31,8 @@ import static org.springframework.roo.support.util.StringUtils.*;
*/
@Component
@Order(Ordered.LOWEST_PRECEDENCE)
public class DefaultBannerProvider implements BannerProvider, CommandMarker {
public class DefaultBannerProvider implements BannerProvider {
//@CliCommand(value = { "shell-version" }, help = "Displays shell version")
public String getBanner() {
StringBuilder sb = new StringBuilder();
sb.append(" _____ _ ").append(LINE_SEPARATOR);

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.api;
package org.springframework.shell.support.api;
import java.util.logging.Logger;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.logging;
package org.springframework.shell.support.logging;
import java.util.ArrayList;
import java.util.Collections;
@@ -7,7 +7,7 @@ import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import org.springframework.roo.support.util.Assert;
import org.springframework.shell.support.util.Assert;
/**
* Defers the publication of JDK {@link LogRecord} instances until a target {@link Handler} is registered.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.logging;
package org.springframework.shell.support.logging;
import java.util.ArrayList;
import java.util.List;
@@ -9,8 +9,8 @@ import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.StringUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.StringUtils;
/**
* Utility methods for dealing with {@link Handler} objects.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.logging;
package org.springframework.shell.support.logging;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -7,8 +7,8 @@ import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.IOUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.IOUtils;
/**
* Wraps an {@link OutputStream} and automatically passes each line to the {@link Logger}

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.logging;
package org.springframework.shell.support.logging;
import java.io.BufferedInputStream;
import java.io.InputStream;
@@ -6,8 +6,8 @@ import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.roo.support.util.FileCopyUtils;
import org.springframework.roo.support.util.IOUtils;
import org.springframework.shell.support.util.FileCopyUtils;
import org.springframework.shell.support.util.IOUtils;
/**
* Retrieves text files from the classloader and displays them on-screen.

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
import org.springframework.roo.support.util.Assert;
import org.springframework.roo.support.util.ClassUtils;
import org.springframework.roo.support.util.ObjectUtils;
import org.springframework.shell.support.util.Assert;
import org.springframework.shell.support.util.ClassUtils;
import org.springframework.shell.support.util.ObjectUtils;
/**
* Spring's default <code>toString()</code> styler.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
import java.lang.reflect.Method;
import java.util.Collection;
@@ -23,8 +23,8 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.roo.support.util.ClassUtils;
import org.springframework.roo.support.util.ObjectUtils;
import org.springframework.shell.support.util.ClassUtils;
import org.springframework.shell.support.util.ObjectUtils;
/**
* Converts objects to String form, generally for debugging purposes,

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
/**
* Simple utility class to allow for convenient access to value

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
import org.springframework.roo.support.util.Assert;
import org.springframework.shell.support.util.Assert;
/**
* Utility class that builds pretty-printing <code>toString()</code> methods

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
/**
* A strategy interface for pretty-printing <code>toString()</code> methods.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.roo.support.style;
package org.springframework.shell.support.style;
/**
* Strategy that encapsulates value String styling algorithms

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* ANSI escape codes supported by JLine

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.LinkedHashMap;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/*
* Copyright 2002-2007 the original author or authors.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/*
* Copyright 2002-2010 the original author or authors.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/*
* Copyright 2002-2008 the original author or authors.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* Methods for working with exceptions.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.io.File;
import java.io.IOException;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* Allows filtering of objects of type T.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* Encodes a given byte array as hex.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.io.Closeable;
import java.io.IOException;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* A class which contains a number of number manipulation operations

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.shell;
package org.springframework.shell.support.util;
import java.util.Comparator;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.math.BigDecimal;
import java.math.BigInteger;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.lang.reflect.Array;
import java.util.Arrays;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* Utilities for handling OS-specific behavior.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
/**
* A pair with a key of type "K" and a value of type "V". Instances are immutable.

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.io.InputStream;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.net.MalformedURLException;
import java.net.URI;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

View File

@@ -1,4 +1,4 @@
package org.springframework.roo.support.util;
package org.springframework.shell.support.util;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

Some files were not shown because too many files have changed in this diff Show More