}
}
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 " +