|
|
|
@ -16,12 +16,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.cli.compiler.autoconfigure; |
|
|
|
package org.springframework.boot.cli.compiler.autoconfigure; |
|
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Documented; |
|
|
|
|
|
|
|
import java.lang.annotation.ElementType; |
|
|
|
|
|
|
|
import java.lang.annotation.Retention; |
|
|
|
|
|
|
|
import java.lang.annotation.RetentionPolicy; |
|
|
|
|
|
|
|
import java.lang.annotation.Target; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.codehaus.groovy.ast.ClassNode; |
|
|
|
import org.codehaus.groovy.ast.ClassNode; |
|
|
|
import org.codehaus.groovy.control.customizers.ImportCustomizer; |
|
|
|
import org.codehaus.groovy.control.customizers.ImportCustomizer; |
|
|
|
import org.springframework.boot.cli.compiler.AstUtils; |
|
|
|
import org.springframework.boot.cli.compiler.AstUtils; |
|
|
|
@ -54,17 +48,10 @@ public class ReactorCompilerAutoConfiguration extends CompilerAutoConfiguration |
|
|
|
public void applyImports(ImportCustomizer imports) { |
|
|
|
public void applyImports(ImportCustomizer imports) { |
|
|
|
imports.addImports("reactor.core.Reactor", "reactor.event.Event", |
|
|
|
imports.addImports("reactor.core.Reactor", "reactor.event.Event", |
|
|
|
"reactor.function.Consumer", "reactor.function.Functions", |
|
|
|
"reactor.function.Consumer", "reactor.function.Functions", |
|
|
|
"reactor.event.selector.Selectors", |
|
|
|
"reactor.event.selector.Selectors", "reactor.spring.annotation.Selector", |
|
|
|
"reactor.spring.context.annotation.On", |
|
|
|
"reactor.spring.annotation.ReplyTo", |
|
|
|
"reactor.spring.context.annotation.Reply", |
|
|
|
"reactor.spring.context.config.EnableReactor").addStarImports( |
|
|
|
EnableReactor.class.getCanonicalName()).addStarImports( |
|
|
|
|
|
|
|
"reactor.event.Selectors"); |
|
|
|
"reactor.event.Selectors"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Target(ElementType.TYPE) |
|
|
|
|
|
|
|
@Documented |
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME) |
|
|
|
|
|
|
|
public static @interface EnableReactor { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|