diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/route/GatewayRouteRepository.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/route/GatewayRouteRepository.java index 8a5661c7..522cd8f7 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/route/GatewayRouteRepository.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/route/GatewayRouteRepository.java @@ -27,14 +27,10 @@ import static java.util.Collections.synchronizedMap; * @author tanghc */ @Slf4j -public class GatewayRouteRepository implements ApplicationEventPublisherAware, - RouteDefinitionRepository, - RouteRepository { +public class GatewayRouteRepository implements RouteDefinitionRepository, RouteRepository { private final Map routes = synchronizedMap(new LinkedHashMap<>()); - private ApplicationEventPublisher publisher; - @Override public Flux getRouteDefinitions() { List list = routes.values().parallelStream() @@ -91,7 +87,6 @@ public class GatewayRouteRepository implements ApplicationEventPublisherAware, @Override public void delete(String id) { routes.remove(id); - this.publisher.publishEvent(new PredicateArgsEvent(this, id, Collections.emptyMap())); } @Override @@ -106,9 +101,4 @@ public class GatewayRouteRepository implements ApplicationEventPublisherAware, } } - @Override - public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) { - this.publisher = applicationEventPublisher; - } - } \ No newline at end of file