File tree 2 files changed +16
-2
lines changed
spring-integration-core/src/test/java/org/springframework/integration
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 53
53
import org .springframework .context .annotation .ConditionContext ;
54
54
import org .springframework .context .annotation .Conditional ;
55
55
import org .springframework .context .annotation .Configuration ;
56
+ import org .springframework .context .annotation .FilterType ;
56
57
import org .springframework .context .annotation .ImportResource ;
57
58
import org .springframework .context .annotation .Lazy ;
58
59
import org .springframework .context .expression .EnvironmentAccessor ;
@@ -814,7 +815,10 @@ public void testAdvisedServiceActivator() {
814
815
}
815
816
816
817
@ Configuration
817
- @ ComponentScan
818
+ @ ComponentScan (
819
+ excludeFilters = @ ComponentScan .Filter (
820
+ type = FilterType .ASSIGNABLE_TYPE ,
821
+ classes = {ChildConfiguration .class , ContextConfiguration2 .class }))
818
822
@ IntegrationComponentScan
819
823
@ EnableIntegration
820
824
// INT-3853
Original file line number Diff line number Diff line change 45
45
import org .springframework .context .annotation .Bean ;
46
46
import org .springframework .context .annotation .ComponentScan ;
47
47
import org .springframework .context .annotation .Configuration ;
48
+ import org .springframework .context .annotation .FilterType ;
48
49
import org .springframework .context .annotation .Scope ;
49
50
import org .springframework .core .task .TaskExecutor ;
50
51
import org .springframework .integration .MessageDispatchingException ;
@@ -641,7 +642,16 @@ public MessageChannel foo() {
641
642
}
642
643
643
644
@ Configuration
644
- @ ComponentScan
645
+ @ ComponentScan (
646
+ excludeFilters = @ ComponentScan .Filter (
647
+ type = FilterType .ASSIGNABLE_TYPE ,
648
+ classes = {
649
+ ContextConfiguration .class ,
650
+ ContextConfiguration3 .class ,
651
+ ContextConfiguration4 .class ,
652
+ InterceptorContextConfiguration .class ,
653
+ SupplierContextConfiguration1 .class ,
654
+ SupplierContextConfiguration2 .class }))
645
655
public static class ContextConfiguration2 {
646
656
647
657
@ Autowired
You can’t perform that action at this time.
0 commit comments