Examples of AlertComponent


Examples of org.xmatthew.spy2servers.annotation.AlertComponent

        }
    }
   
    private void detectAlertComponent(Object bean) throws RuntimeException {
        Class<?> beanClass = this.getBeanClass(bean);
        AlertComponent alertComponentAnnotation = AnnotationUtils.findAnnotation(beanClass, AlertComponent.class);
        if (alertComponentAnnotation != null) {
            if (bean instanceof org.xmatthew.spy2servers.core.AlertComponent) {
                org.xmatthew.spy2servers.core.AlertComponent alertComponent;
                alertComponent = (org.xmatthew.spy2servers.core.AlertComponent) bean;
               
                String name = alertComponentAnnotation.name();
                if (StringUtils.isNotBlank(name)) {
                    alertComponent.setName(name);
                }
            } else {
                throw new RuntimeException("@AlertComponent mark class must implement " +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.