/** * The real class of the implementation * @param currentClass current class * @return class of the real implementation */ public static Class getUnproxiedClass(Class currentClass) { if(isProxiedClass(currentClass)) { return currentClass.getSuperclass(); } return currentClass; }
protected void checkProjectStage(@Observes StartupEvent startupEvent) { javax.faces.application.ProjectStage jsfProjectStage = FacesContext.getCurrentInstance().getApplication().getProjectStage(); if(!ProxyUtils.getUnproxiedClass(this.projectStage.getClass()).getSimpleName().equals( jsfProjectStage.name() )) { this.logger.warning("The value of the JSF 2 project stage (" + jsfProjectStage.name() + ") is different from the CODI project stage (" + this.projectStage + ")"); } } }
Class currentClass = ProxyUtils.getUnproxiedClass(config.getClass()); while (currentClass != null && !Object.class.getName().equals(currentClass.getName()) &&
Class currentClass = ProxyUtils.getUnproxiedClass(config.getClass()); while (currentClass != null && !Object.class.getName().equals(currentClass.getName()) &&
/** * The real class of the implementation * @param currentClass current class * @return class of the real implementation */ public static Class getUnproxiedClass(Class currentClass) { if(isProxiedClass(currentClass)) { return currentClass.getSuperclass(); } return currentClass; }
Class currentClass = ProxyUtils.getUnproxiedClass(config.getClass()); while (currentClass != null && !Object.class.getName().equals(currentClass.getName()) &&
/** * The real class of the implementation * @param currentClass current class * @return class of the real implementation */ public static Class getUnproxiedClass(Class currentClass) { if(isProxiedClass(currentClass)) { return currentClass.getSuperclass(); } return currentClass; }