15 文件已重命名
1个文件已删除
1个文件已添加
3个文件已修改
| | |
| | |
|
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
| | | import com.duxinglangzi.canal.starter.annotation.CanalInsertListener;
|
| | | import com.duxinglangzi.canal.starter.annotation.CanalListener;
|
| | | import com.duxinglangzi.canal.starter.annotation.CanalUpdateListener;
|
| | | import com.duxinglangzi.canal.starter.annotation.EnableCanalListener;
|
| | | import com.duxinglangzi.canal.starter.mode.CanalMessage;
|
| | | import CanalInsertListener;
|
| | | import CanalListener;
|
| | | import CanalUpdateListener;
|
| | | import EnableCanalListener;
|
| | | import CanalMessage;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.stream.Collectors;
|
| | |
| | | /**
|
| | | * 必须在类上 使用 EnableCanalListener 注解才能开启 canal listener
|
| | | *
|
| | | * 目前 Listener 方法的参数必须为 com.duxinglangzi.canal.starter.mode.CanalMessage
|
| | | * 目前 Listener 方法的参数必须为 CanalMessage
|
| | | * 程序在启动过程中会做检查
|
| | | */
|
| | |
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/annotation/CanalDeleteListener.java |
| | |
| | | package com.duxinglangzi.canal.starter.annotation;
|
| | | package com.hz.canal.starter.annotation; |
| | |
|
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/annotation/CanalInsertListener.java |
| | |
| | | package com.duxinglangzi.canal.starter.annotation;
|
| | | package com.hz.canal.starter.annotation; |
| | |
|
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/annotation/CanalListener.java |
| | |
| | | package com.duxinglangzi.canal.starter.annotation;
|
| | | package com.hz.canal.starter.annotation; |
| | |
|
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/annotation/CanalUpdateListener.java |
| | |
| | | package com.duxinglangzi.canal.starter.annotation;
|
| | | package com.hz.canal.starter.annotation; |
| | |
|
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
New file |
| | |
| | | package com.hz.canal.starter.annotation; |
| | | |
| | | import com.hz.canal.starter.configuration.CanalAutoConfigurationProperties; |
| | | import com.hz.canal.starter.configuration.CanalConfigurationSelector; |
| | | import com.hz.canal.starter.listener.ApplicationReadyListener; |
| | | import org.springframework.context.annotation.Import; |
| | | |
| | | import java.lang.annotation.*; |
| | | |
| | | /** |
| | | * 开启 canal listener |
| | | * |
| | | * @author wuqiong 2022/8/4 |
| | | */ |
| | | @Documented |
| | | @Inherited |
| | | @Target(ElementType.TYPE) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Import({CanalAutoConfigurationProperties.class, CanalConfigurationSelector.class, ApplicationReadyListener.class}) |
| | | public @interface EnableCanalListener { |
| | | } |
File was renamed from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalAutoConfigurationProperties.java |
| | |
| | | package com.duxinglangzi.canal.starter.configuration;
|
| | | package com.hz.canal.starter.configuration; |
| | |
|
| | | import org.springframework.boot.context.properties.ConfigurationProperties;
|
| | | import org.springframework.core.Ordered;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalBootstrapConfiguration.java |
| | |
| | | package com.duxinglangzi.canal.starter.configuration;
|
| | | package com.hz.canal.starter.configuration; |
| | |
|
| | | import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
| | | import org.springframework.beans.factory.support.RootBeanDefinition;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalConfigurationSelector.java |
| | |
| | | package com.duxinglangzi.canal.starter.configuration;
|
| | | package com.hz.canal.starter.configuration; |
| | |
|
| | | import org.springframework.context.annotation.DeferredImportSelector;
|
| | | import org.springframework.core.type.AnnotationMetadata;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalListenerAnnotationBeanPostProcessor.java |
| | |
| | | package com.duxinglangzi.canal.starter.configuration;
|
| | | package com.hz.canal.starter.configuration; |
| | |
|
| | |
|
| | | import com.duxinglangzi.canal.starter.annotation.CanalListener;
|
| | | import com.duxinglangzi.canal.starter.factory.TransponderContainerFactory;
|
| | | import com.hz.canal.starter.annotation.CanalListener; |
| | | import com.hz.canal.starter.factory.TransponderContainerFactory; |
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | | import org.springframework.aop.support.AopUtils;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalListenerEndpointRegistrar.java |
| | |
| | | package com.duxinglangzi.canal.starter.configuration;
|
| | | package com.hz.canal.starter.configuration; |
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
| | | import com.alibaba.otter.canal.protocol.exception.CanalClientException;
|
| | | import com.duxinglangzi.canal.starter.mode.CanalMessage;
|
| | | import com.hz.canal.starter.mode.CanalMessage; |
| | | import org.apache.commons.lang3.StringUtils;
|
| | |
|
| | | import java.lang.reflect.Method;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java |
| | |
| | | package com.duxinglangzi.canal.starter.container;
|
| | | package com.hz.canal.starter.container; |
| | |
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
| | | import com.duxinglangzi.canal.starter.listener.ApplicationReadyListener;
|
| | | import com.hz.canal.starter.listener.ApplicationReadyListener; |
| | | import org.springframework.context.SmartLifecycle;
|
| | |
|
| | | import java.util.Arrays;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/container/DmlMessageTransponderContainer.java |
| | |
| | | package com.duxinglangzi.canal.starter.container;
|
| | | package com.hz.canal.starter.container; |
| | |
|
| | | import com.alibaba.otter.canal.client.CanalConnector;
|
| | | import com.alibaba.otter.canal.protocol.CanalEntry;
|
| | | import com.alibaba.otter.canal.protocol.Message;
|
| | | import com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties;
|
| | | import com.duxinglangzi.canal.starter.configuration.CanalListenerEndpointRegistrar;
|
| | | import com.duxinglangzi.canal.starter.mode.CanalMessage;
|
| | | import com.hz.canal.starter.configuration.CanalAutoConfigurationProperties; |
| | | import com.hz.canal.starter.configuration.CanalListenerEndpointRegistrar; |
| | | import com.hz.canal.starter.mode.CanalMessage; |
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | |
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/factory/CanalConnectorFactory.java |
| | |
| | | package com.duxinglangzi.canal.starter.factory;
|
| | | package com.hz.canal.starter.factory; |
| | |
|
| | | import com.alibaba.otter.canal.client.CanalConnector;
|
| | | import com.alibaba.otter.canal.client.CanalConnectors;
|
| | | import com.alibaba.otter.canal.protocol.exception.CanalClientException;
|
| | | import com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties;
|
| | | import com.hz.canal.starter.configuration.CanalAutoConfigurationProperties; |
| | | import org.springframework.util.Assert;
|
| | | import org.springframework.util.StringUtils;
|
| | |
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/factory/TransponderContainerFactory.java |
| | |
| | | package com.duxinglangzi.canal.starter.factory;
|
| | | package com.hz.canal.starter.factory; |
| | |
|
| | | import com.alibaba.otter.canal.client.CanalConnector;
|
| | | import com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties;
|
| | | import com.duxinglangzi.canal.starter.configuration.CanalListenerEndpointRegistrar;
|
| | | import com.duxinglangzi.canal.starter.container.DmlMessageTransponderContainer;
|
| | | import com.hz.canal.starter.configuration.CanalAutoConfigurationProperties; |
| | | import com.hz.canal.starter.configuration.CanalListenerEndpointRegistrar; |
| | | import com.hz.canal.starter.container.DmlMessageTransponderContainer; |
| | | import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
| | |
|
| | | import java.util.ArrayList;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/listener/ApplicationReadyListener.java |
| | |
| | | package com.duxinglangzi.canal.starter.listener;
|
| | | package com.hz.canal.starter.listener; |
| | |
|
| | | import org.springframework.boot.context.event.ApplicationReadyEvent;
|
| | | import org.springframework.context.ApplicationListener;
|
File was renamed from src/main/java/com/duxinglangzi/canal/starter/mode/CanalMessage.java |
| | |
| | | package com.duxinglangzi.canal.starter.mode; |
| | | package com.hz.canal.starter.mode; |
| | | |
| | | import com.alibaba.otter.canal.protocol.CanalEntry; |
| | | |
| | |
| | | {
|
| | | "properties": [
|
| | | {
|
| | | "sourceType": "com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties",
|
| | | "sourceType": "com.hz.canal.starter.configuration.CanalAutoConfigurationProperties",
|
| | | "name": "spring.canal.instances",
|
| | | "type": "java.util.Map<java.lang.String,com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties.EndpointInstance>",
|
| | | "type": "java.util.Map<java.lang.String,com.hz.canal.starter.configuration.CanalAutoConfigurationProperties.EndpointInstance>",
|
| | | "description": "canal config "
|
| | | }
|
| | | ]
|
| | |
| | | |
| | | # Auto Configure |
| | | # org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ |
| | | # com.duxinglangzi.canal.starter.configuration.CanalAutoConfigurationProperties,\ |
| | | # com.duxinglangzi.canal.starter.configuration.CanalConfigurationSelector |
| | | # CanalAutoConfigurationProperties,\ |
| | | # CanalConfigurationSelector |
| | | |
| | | # Application Listeners |
| | | # org.springframework.context.ApplicationListener=\ |
| | | # com.duxinglangzi.canal.starter.listener.ApplicationReadyListener |
| | | # ApplicationReadyListener |