Package com.cedarsolutions.exception

Examples of com.cedarsolutions.exception.NotConfiguredException


    /** Register entities with Objectify. */
    @SuppressWarnings("rawtypes")
    private void registerObjectifyEntities() {
        List<Class> classes = parseEntities(this.entities);
        if (classes.isEmpty()) {
            throw new NotConfiguredException("DaoObjectifyService did not register any classes.  Is entities file configured properly?");
        }

        for (Class clazz : classes) {
            this.objectifyServiceProxy.register(clazz);
        }
View Full Code Here


     * @throws NotConfiguredException In the event of misconfiguration.
     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        if (this.userService == null || this.authenticationManager == null) {
            throw new NotConfiguredException("GaeAuthenticationFilter is not properly configured.");
        }
    }
View Full Code Here

     * @throws NotConfiguredException In the event of misconfiguration.
     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        if (this.daoObjectifyService == null) {
            throw new NotConfiguredException("DAO is not properly configured.");
        }
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.objectifyServiceProxy == null || this.entities == null) {
            throw new NotConfiguredException("DaoObjectifyService is not properly configured.");
        }

        this.registerObjectifyEntities();
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.gaeVelocityUtils == null || this.templateDirResource == null) {
            throw new NotConfiguredException("GaeVelocityTemplateService is not properly configured.");
        }

        if (!this.templateDirResource.exists()) {
            throw new NotConfiguredException("Configured template directory does not exist.");
        }

        try {
            this.templateDir = this.templateDirResource.getFile().getPath();
            LOGGER.debug("Velocity template directory is: " + this.templateDir);
        } catch (IOException e) {
            throw new NotConfiguredException("Unable to get templates path: " + e.getMessage(), e);
        }
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.userService == null || this.springContextService == null) {
            throw new NotConfiguredException("GaeUserService is not properly configured.");
        }
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.gaeEmailUtils == null || this.templateService == null) {
            throw new NotConfiguredException("GaeEmailService is not properly configured.");
        }
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.gaeUserService == null) {
            throw new NotConfiguredException("GaeUserRpc is not properly configured.");
        }
    }
View Full Code Here

            if (this.logContents) {
                LOGGER.info(this.toString());
            }
        } catch (IOException e) {
            throw new NotConfiguredException("Error loading properties: " + e.getMessage(), e);
        }
    }
View Full Code Here

     * @throws NotConfiguredException If there is a parsing error.
     */
    protected String parseRequiredString(String property) throws NotConfiguredException {
        String value = this.properties.getProperty(property);
        if (value == null) {
            throw new NotConfiguredException("Property " + property + " is not set.");
        }

        if (StringUtils.isEmpty(value)) {
            throw new NotConfiguredException("Property " + property + " is empty.");
        }

        return value;
    }
View Full Code Here

TOP

Related Classes of com.cedarsolutions.exception.NotConfiguredException

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.