All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ops4j.pax.runner.OptionResolver Maven / Gradle / Ivy

Go to download

OPS4J Pax Runner - Core engine. See details at http://wiki.ops4j.org/confluence/x/A4A6.

There is a newer version: 1.9.0
Show newest version
package org.ops4j.pax.runner;

/**
 * Resolvs options by name.
 *
 * @author Alin Dreghiciu
 * @since August 26, 2007
 */
public interface OptionResolver
{

    /**
     * Returns the value of option.
     *
     * @param name option name
     *
     * @return found value.
     */
    String get( String name );

    /**
     * Returns the value of option. If value is null thrwos IllegalArgumentException.
     *
     * @param name option name
     *
     * @return found value.
     */
    String getMandatory( String name );

    /**
     * Returns the value of option that can be specified more times under the same name (as an array of values).
     *
     * @param name option name
     *
     * @return found values, or empty aray if option not present.
     */
    String[] getMultiple( String name );

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy