Package org.apache.geronimo.common

Examples of org.apache.geronimo.common.NullArgumentException


     * @param backing   The list which provides actual backing.
     */
    public TransientHistory(final List backing)
    {
        if (backing == null) {
            throw new NullArgumentException("backing");
        }
       
        this.backing = backing;
    }
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

     * @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

     * @return       An editor for the given type or null if none was found.
     */
    public static PropertyEditor findEditor(final Class type)
    {
        if (type == null) {
            throw new NullArgumentException("type");
        }

        PropertyEditor editor = PropertyEditorManager.findEditor(type);

        // Try to use adapter for array types
View Full Code Here

     */
    public static PropertyEditor findEditor(final String typeName, ClassLoader classLoader)
        throws ClassNotFoundException
    {
        if (typeName == null) {
            throw new NullArgumentException("typeName");
        }

        Class type = null;
        try {
            type = ClassLoading.loadClass(typeName, classLoader);
View Full Code Here

     * @param editorType   The class of the editor.
     */
    public static void registerEditor(final Class type, final Class editorType)
    {
        if (type == null) {
            throw new NullArgumentException("type");
        }
        if (editorType == null) {
            throw new NullArgumentException("editorType");
        }

        PropertyEditorManager.registerEditor(type, editorType);
    }
View Full Code Here

    public static void registerEditor(final String typeName,
                                      final String editorTypeName)
        throws ClassNotFoundException
    {
        if (typeName == null) {
            throw new NullArgumentException("typeName");
        }
        if (editorTypeName == null) {
            throw new NullArgumentException("editorTypeName");
        }

        Class type = ClassLoading.loadClass(typeName);
        Class editorType = ClassLoading.loadClass(editorTypeName);
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.