Package org.xmatthew.spy2servers.annotation

Examples of org.xmatthew.spy2servers.annotation.SpyComponent


        return bean;
    }

    private void detectSpyComponent(Object bean) throws RuntimeException {
        Class<?> beanClass = this.getBeanClass(bean);
        SpyComponent spyComponentAnnotation = AnnotationUtils.findAnnotation(beanClass, SpyComponent.class);
        if (spyComponentAnnotation != null) {
            if (bean instanceof org.xmatthew.spy2servers.core.SpyComponent) {
                org.xmatthew.spy2servers.core.SpyComponent spyComponent;
                spyComponent = (org.xmatthew.spy2servers.core.SpyComponent) bean;
               
                String name = spyComponentAnnotation.name();
                if (StringUtils.isNotBlank(name)) {
                    spyComponent.setName(name);
                }
            } else {
                throw new RuntimeException("@SpyComponent mark class must implement " +
View Full Code Here

TOP

Related Classes of org.xmatthew.spy2servers.annotation.SpyComponent

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.