|
|
@ -31,7 +31,8 @@ public class ReactorCompilerAutoConfiguration extends CompilerAutoConfiguration
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean matches(ClassNode classNode) {
|
|
|
|
public boolean matches(ClassNode classNode) {
|
|
|
|
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableReactor") || AstUtils.hasAtLeastOneFieldOrMethod(classNode, "Reactor");
|
|
|
|
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableReactor")
|
|
|
|
|
|
|
|
|| AstUtils.hasAtLeastOneFieldOrMethod(classNode, "Reactor");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -43,15 +44,16 @@ public class ReactorCompilerAutoConfiguration extends CompilerAutoConfiguration
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void applyImports(ImportCustomizer imports) {
|
|
|
|
public void applyImports(ImportCustomizer imports) {
|
|
|
|
imports.addImports("reactor.core.Reactor", "reactor.event.Event",
|
|
|
|
imports.addImports("reactor.core.Reactor", "reactor.core.spec.Reactors",
|
|
|
|
"reactor.function.Consumer", "reactor.function.Functions",
|
|
|
|
"reactor.core.Observable", "reactor.event.Event",
|
|
|
|
"reactor.event.selector.Selectors",
|
|
|
|
"reactor.function.Functions", "reactor.function.Predicates",
|
|
|
|
|
|
|
|
"reactor.function.Suppliers",
|
|
|
|
"reactor.spring.context.annotation.Consumer",
|
|
|
|
"reactor.spring.context.annotation.Consumer",
|
|
|
|
"reactor.spring.context.annotation.Selector",
|
|
|
|
"reactor.spring.context.annotation.Selector",
|
|
|
|
"reactor.spring.context.annotation.SelectorType",
|
|
|
|
"reactor.spring.context.annotation.SelectorType",
|
|
|
|
"reactor.spring.context.annotation.ReplyTo",
|
|
|
|
"reactor.spring.context.annotation.ReplyTo",
|
|
|
|
"reactor.spring.context.config.EnableReactor")
|
|
|
|
"reactor.spring.context.config.EnableReactor")
|
|
|
|
.addStarImports("reactor.event.Selectors")
|
|
|
|
.addStarImports("reactor.event.selector.Selectors")
|
|
|
|
.addImport("ReactorEnvironment", "reactor.core.Environment");
|
|
|
|
.addImport("ReactorEnvironment", "reactor.core.Environment");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|