Package org.apache.geronimo.validator

Examples of org.apache.geronimo.validator.ValidationResult


     * Check that the bean implementation class exists and meets certain minimum
     * criteria.
     */
    public ValidationResult testBeanImplementationClass() {
        Class cls = loadClass(bean.getEjbClass().getStringValue(), "Session Bean Implementation Class");
        ValidationResult result = ValidationResult.PASSED;
        if(!Modifier.isPublic(cls.getModifiers())) {
            result = error("ejb.impl.not.public", result);
        }
        if(Modifier.isFinal(cls.getModifiers())) {
            result = error("ejb.impl.is.final", result);
View Full Code Here


    /**
     * Tests that there's either a local and a remote and either a local home
     * or a home.  todo: make sure you don't get a remote and a local home
     */
    public ValidationResult testLocalOrRemote() {
        ValidationResult result = ValidationResult.PASSED;
        if(bean.getHome() == null && bean.getLocalHome() == null) {
            result = error("ejb.no.home.interface", result);
        }
        if(bean.getRemote() == null && bean.getLocal() == null) {
            result = error("ejb.no.component.interface", result);
View Full Code Here

    /**
     * Check that the home interface class exists and meets certain minimum
     * criteria.
     */
    public ValidationResult testHomeInterface() {
        ValidationResult result = ValidationResult.PASSED;
        if(bean.getHome() == null) {
            return result;
        }
        Class cls = loadClass(bean.getHome().getStringValue(), "Session Bean Home Class");
        if(!EJBHome.class.isAssignableFrom(cls)) {
View Full Code Here

     * Check that the bean implementation class exists and meets certain minimum
     * criteria.
     */
    public ValidationResult testBeanImplementationClass() {
        Class cls = loadClass(bean.getEjbClass().getStringValue(), "Session Bean Implementation Class");
        ValidationResult result = ValidationResult.PASSED;
        if(!Modifier.isPublic(cls.getModifiers())) {
            result = error("ejb.impl.not.public", result);
        }
        if(Modifier.isFinal(cls.getModifiers())) {
            result = error("ejb.impl.is.final", result);
View Full Code Here

    /**
     * Tests that there's either a local and a remote and either a local home
     * or a home.  todo: make sure you don't get a remote and a local home
     */
    public ValidationResult testLocalOrRemote() {
        ValidationResult result = ValidationResult.PASSED;
        if(bean.getHome() == null && bean.getLocalHome() == null) {
            result = error("ejb.no.home.interface", result);
        }
        if(bean.getRemote() == null && bean.getLocal() == null) {
            result = error("ejb.no.component.interface", result);
View Full Code Here

    /**
     * Check that the home interface class exists and meets certain minimum
     * criteria.
     */
    public ValidationResult testHomeInterface() {
        ValidationResult result = ValidationResult.PASSED;
        if(bean.getHome() == null) {
            return result;
        }
        Class cls = loadClass(bean.getHome().getStringValue(), "Session Bean Home Class");
        if(!EJBHome.class.isAssignableFrom(cls)) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.validator.ValidationResult

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.