Package org.apache.geronimo.common

Examples of org.apache.geronimo.common.NullArgumentException


     * Construct a <code>Twiddle</code> command processor.
     */
    public Twiddle(final IOContext io, final ClassWorld world)
    {
        if (io == null) {
            throw new NullArgumentException("io");
        }
        if (world == null) {
            throw new NullArgumentException("world");
        }
       
        this.io = io;
        this.world = world;
        this.container = new CommandContainer();
View Full Code Here


     * @param out   The writer to print to.
     */
    public HelpFormatter(final PrintWriter out)
    {
        if (out == null) {
            throw new NullArgumentException("out");
        }
       
        this.out = out;
    }
View Full Code Here

     */
    public void print(final String desc, final String usage, String header,
                      final Options options, String footer)
    {
        if (usage == null) {
            throw new NullArgumentException("usage");
        }
        if (options == null) {
            throw new NullArgumentException("options");
        }
       
        if (desc != null) {
            out.println(desc);
            out.println();
View Full Code Here

     * @param errorOutput   The error output stream.
     */
    public IOContext(final InputStream input, final OutputStream output, final OutputStream errorOutput)
    {
        if (input == null) {
            throw new NullArgumentException("input");
        }
        if (output == null) {
            throw new NullArgumentException("output");
        }
        if (errorOutput == null) {
            throw new NullArgumentException("errorOutput");
        }
       
        this.input = input;
        this.output = output;
        this.errorOutput = errorOutput;
View Full Code Here

    protected Twiddle twiddle;
   
    public Configurator(final Twiddle twiddle)
    {
        if (twiddle == null) {
            throw new NullArgumentException("twiddle");
        }
       
        this.twiddle = twiddle;
        this.valueParser = new StringValueParser();
    }
View Full Code Here

    }
   
    public void configure(final Configuration config) throws CommandException
    {
        if (config == null) {
            throw new NullArgumentException("config");
        }
       
        try {
            configureProperties(config.getPropertiesConfig());
            configureClassWorlds(config.getClassWorldsConfig());
View Full Code Here

        if (config == null) return;
       
        PropertyConfig[] props = config.getPropertyConfig();
        for (int i=0; i<props.length; i++) {
            if (props[i] == null) {
                throw new NullArgumentException("PropertyConfig", i);
            }
           
            String name = props[i].getName().trim();
            String value = props[i].getContent();
            value = valueParser.parse(value);
View Full Code Here

        if (config == null) return;
       
        ClassRealmConfig[] realms = config.getClassRealmConfig();
        for (int i=0; i<realms.length; i++) {
            if (realms[i] == null) {
                throw new NullArgumentException("ClassRealmConfig", i);
            }
           
            String name = realms[i].getName();
            if (name == null) {
                name = Command.DEFAULT_CLASS_REALM;
View Full Code Here

       
        ConfigurationReader reader = new ConfigurationReader();
       
        for (int i=0; i<includes.length; i++) {
            if (includes[i] == null) {
                throw new NullArgumentException("Includes", i);
            }
            if (trace) {
                log.trace("Processing include: " + includes[i]);
            }
       
View Full Code Here

        CommandContainer container = twiddle.getCommandContainer();
        ClassWorld world = getTwiddle().getClassWorld();
       
        for (int i=0; i<commands.length; i++) {
            if (commands[i] == null) {
                throw new NullArgumentException("CommandConfig", i);
            }
           
            CommandInfo info = new CommandInfo(commands[i], world);
            container.addCommandInfo(info);
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.common.NullArgumentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.