Package org.apache.geronimo.common

Examples of org.apache.geronimo.common.NullArgumentException


    protected CommandContainer container;
   
    public CommandExecutor(final CommandContainer container)
    {
        if (container == null) {
            throw new NullArgumentException("container");
        }
       
        this.container = container;
    }
View Full Code Here


     * @throws Exception
     */
    public int execute(final String[] args) throws Exception
    {
        if (args == null) {
            throw new NullArgumentException("args");
        }
        if (args.length == 0) {
            throw new RuntimeException("Arguments are empty");
        }
       
View Full Code Here

     * @throws Exception
     */
    public int execute(final String input) throws Exception
    {
        if (input == null) {
            throw new NullArgumentException("input");
        }
       
        String[] args = StringUtils.split(input, " ");
        return execute(args);
    }
View Full Code Here

     */
    public int execute(final String path, final String[] args) throws Exception
    {
        // path is checked by findCommand
        if (args == null) {
            throw new NullArgumentException("args");
        }
        if (args.length == 0) {
            throw new RuntimeException("Arguments are empty");
        }
       
View Full Code Here

     * @throws Exception
     */
    public int execute(final String path, final String input) throws Exception
    {
        if (input == null) {
            throw new NullArgumentException("input");
        }
       
        String[] args = StringUtils.split(input, " ");
        return execute(path, args);
    }
View Full Code Here

    }
   
    public CommandInfo addCommandInfo(final CommandInfo info)
    {
        if (info == null) {
            throw new NullArgumentException("info");
        }
       
        return (CommandInfo)descriptors.put(info.getName(), info);
    }
View Full Code Here

    }
   
    public CommandInfo getCommandInfo(final String name)
    {
        if (name == null) {
            throw new NullArgumentException("name");
        }
       
        return (CommandInfo)descriptors.get(name);
    }
View Full Code Here

    }
   
    public boolean containsCommandInfo(final String name)
    {
        if (name == null) {
            throw new NullArgumentException("name");
        }
       
        return descriptors.containsKey(name);
    }
View Full Code Here

    }
   
    public CommandInfo removeCommandInfo(final String name)
    {
        if (name == null) {
            throw new NullArgumentException("name");
        }
       
        return (CommandInfo)descriptors.remove(name);
    }
View Full Code Here

    private ClassWorld world;
   
    public Main(final ClassWorld world)
    {
        if (world == null) {
            throw new NullArgumentException("world");
        }
       
        this.world = world;
    }
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.