Package org.springmodules.xt.model.specifications.support

Examples of org.springmodules.xt.model.specifications.support.SpecificationAdapterException


        logger.debug(new StringBuilder().append("Adapting ").append(this.specification.getClass()).append(" to ").append(Predicate.class));
           
        try {
            Object tmp = this.specificationMethod.invoke(specification, object);
            if (!(tmp instanceof Boolean)) {
                throw new SpecificationAdapterException(this.specificationMethod.toString() + " must return a boolean value.");
            }
            else {
                result = (Boolean) tmp;
            }
        }
        catch(Exception ex) {
            throw new SpecificationAdapterException("Error while calling: " + this.specificationMethod.toString(), ex);
        }
       
        return result;
    }
View Full Code Here

TOP

Related Classes of org.springmodules.xt.model.specifications.support.SpecificationAdapterException

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.