Package org.apache.geronimo.common

Examples of org.apache.geronimo.common.NullArgumentException


     * @param world     The classworld to load the command class from.
     */
    public CommandInfo(final CommandConfig config, final ClassWorld world)
    {
        if (config == null) {
            throw new NullArgumentException("config");
        }
        if (world == null) {
            throw new NullArgumentException("world");
        }
       
        this.config = config;
        this.world = world;
    }
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

     * @throws Exception    Failed to read configuration.
     */
    public Configuration read(final URL url) throws Exception
    {
        if (url == null) {
            throw new NullArgumentException("url");
        }
       
        if (log.isDebugEnabled()) {
            log.debug("Reading: " + url);
        }
View Full Code Here

    protected boolean running;
   
    public InteractiveConsole(final Console console)
    {
        if (console == null) {
            throw new NullArgumentException("console");
        }
       
        this.console = console;
    }
View Full Code Here

     * @throws Exception    Failed to read configuration.
     */
    public Configuration read(final String urlspec) throws Exception
    {
        if (urlspec == null) {
            throw new NullArgumentException("urlspec");
        }
       
        return read(URLFactory.create(urlspec));
    }
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

     * @throws Exception    Failed to read configuration.
     */
    public Configuration read(final File file) throws Exception
    {
        if (file == null) {
            throw new NullArgumentException("file");
        }
       
        if (log.isDebugEnabled()) {
            log.debug("Reading: " + file);
        }
View Full Code Here

     * @throws Exception    Failed to read configuration.
     */
    public Configuration read(final Reader reader) throws Exception
    {
        if (reader == null) {
            throw new NullArgumentException("reader");
        }
       
        return (Configuration)unmarshaller.unmarshal(reader);
    }
View Full Code Here

    /////////////////////////////////////////////////////////////////////////
   
    public void setCommandInfo(final CommandInfo info)
    {
        if (info == null) {
            throw new NullArgumentException("info");
        }
       
        this.info = info;
    }
View Full Code Here

    }
   
    public void setCommandContext(final CommandContext ctx)
    {
        if (ctx == null) {
            throw new NullArgumentException("ctx");
        }
       
        this.context = ctx;
    }
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.