Package org.apache.jackrabbit.core.config

Examples of org.apache.jackrabbit.core.config.ConfigurationException


    public Object newInstance(Class<?> clazz, BeanConfig config) throws ConfigurationException {
        Class targetClass = getClassFromConfig(config);
        if (targetClass.isInterface()) {
            Object o = instanceMap.get(targetClass);
            if (o == null) {
                throw new ConfigurationException("No instance registered for type " + targetClass.getName());
            }
            return o;
        }
        return delegate.newInstance(clazz, config);
    }
View Full Code Here


            }
            builder.setEntityResolver(ConfigurationEntityResolver.INSTANCE);
            Document document = builder.parse(xml);
            return document.getDocumentElement();
        } catch (ParserConfigurationException e) {
            throw new ConfigurationException("Unable to create configuration XML parser", e);
        } catch (SAXParseException e) {
            throw new ConfigurationException("Configuration file syntax error. (Line: " + e.getLineNumber() + " Column: " + e.getColumnNumber() + ")", e);
        } catch (SAXException e) {
            throw new ConfigurationException("Configuration file syntax error. ", e);
        } catch (IOException e) {
            throw new ConfigurationException("Configuration file could not be read.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.config.ConfigurationException

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.