|
|
|
@ -109,6 +109,27 @@ import java.util.Objects;
|
|
|
|
|
}) |
|
|
|
|
public class DesignEnvComponent { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* prepare |
|
|
|
|
*/ |
|
|
|
|
@Supplemental |
|
|
|
|
public void prepare() { |
|
|
|
|
Carina.getApplicationContext().group(AnalyzerMutableGroup.class).add(AnalyzerConfiguration.create((builder, typeDescription, classLoader, module) -> builder |
|
|
|
|
.method(ElementMatchers.isAnnotatedWith(Focus.class)) |
|
|
|
|
.intercept(MethodDelegation.to(FocusInterceptor.class)))); |
|
|
|
|
Carina.getApplicationContext().group(AnalyzerMutableGroup.class).add(AnalyzerConfiguration.create((builder, typeDescription, classLoader, module) -> builder |
|
|
|
|
.method(ElementMatchers.isAnnotatedWith(Compute.class)) |
|
|
|
|
.intercept(MethodDelegation.to(MonitorInterceptor.class)))); |
|
|
|
|
Carina.getApplicationContext().group(AnalyzerMutableGroup.class).add(AnalyzerConfiguration.create((builder, typeDescription, classLoader, module) -> builder |
|
|
|
|
.method(ElementMatchers.isAnnotatedWith(DBMetrics.class)) |
|
|
|
|
.intercept(MethodDelegation.to(DBMonitorInterceptor.class)))); |
|
|
|
|
Carina.getApplicationContext().group(AnalyzerMutableGroup.class).add(AnalyzerConfiguration.create((builder, typeDescription, classLoader, module) -> builder |
|
|
|
|
.method(ElementMatchers.isAnnotatedWith(PerformancePoint.class)) |
|
|
|
|
.intercept(MethodDelegation.to(PerformancePointInterceptor.class)))); |
|
|
|
|
Carina.getApplicationContext().group(AnalyzerMutableGroup.class).add(AnalyzerConfiguration.create((builder, typeDescription, classLoader, module) -> builder |
|
|
|
|
.method(ElementMatchers.isAnnotatedWith(FaultTolerance.class)) |
|
|
|
|
.intercept(MethodDelegation.to(FaultToleranceInterceptor.class)))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Start |
|
|
|
|
public void start() throws Exception { |
|
|
|
|