Package org.xmatthew.spy2servers.annotation

Examples of org.xmatthew.spy2servers.annotation.MessageAlertChannelActiveAwareComponent


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

TOP

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

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.