javax.enterprise.inject.Intercepted Java Examples

The following examples show how to use javax.enterprise.inject.Intercepted. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FaultToleranceInterceptor.java    From smallrye-fault-tolerance with Apache License 2.0 6 votes vote down vote up
@Inject
public FaultToleranceInterceptor(
        FallbackHandlerProvider fallbackHandlerProvider,
        @Intercepted Bean<?> interceptedBean,
        MetricsCollectorFactory metricsCollectorFactory,
        FaultToleranceOperationProvider operationProvider,
        StrategyCache cache,
        ExecutorProvider executorProvider,
        Event<CircuitBreakerStateChanged> cbStateEvent) {
    this.fallbackHandlerProvider = fallbackHandlerProvider;
    this.interceptedBean = interceptedBean;
    this.metricsCollectorFactory = metricsCollectorFactory;
    this.operationProvider = operationProvider;
    this.executorProvider = executorProvider;
    this.cache = cache;
    this.cbStateEvent = cbStateEvent;
    asyncExecutor = executorProvider.getGlobalExecutor();
    timeoutExecutor = executorProvider.getTimeoutExecutor();
    requestContextController = RequestContextControllerProvider.load().get();
}
 
Example #2
Source File: BeanArchives.java    From quarkus with Apache License 2.0 6 votes vote down vote up
private static IndexView buildAdditionalIndex() {
    Indexer indexer = new Indexer();
    // CDI API
    index(indexer, ActivateRequestContext.class.getName());
    index(indexer, Default.class.getName());
    index(indexer, Any.class.getName());
    index(indexer, Named.class.getName());
    index(indexer, Initialized.class.getName());
    index(indexer, BeforeDestroyed.class.getName());
    index(indexer, Destroyed.class.getName());
    index(indexer, Intercepted.class.getName());
    index(indexer, Model.class.getName());
    // Arc built-in beans
    index(indexer, ActivateRequestContextInterceptor.class.getName());
    index(indexer, InjectableRequestContextController.class.getName());
    return indexer.complete();
}
 
Example #3
Source File: MeteredInterceptor.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
@Inject
private MeteredInterceptor(@Intercepted Bean<?> bean, MetricRegistry registry, MetricResolver resolver) {
    this.bean = bean;
    this.registry = registry;
    this.resolver = resolver;
}
 
Example #4
Source File: CountedInterceptor.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
@Inject
private CountedInterceptor(@Intercepted Bean<?> bean, MetricRegistry registry, MetricResolver resolver) {
    this.bean = bean;
    this.registry = registry;
    this.resolver = resolver;
}
 
Example #5
Source File: TimedInterceptor.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
@Inject
private TimedInterceptor(@Intercepted Bean<?> bean, MetricRegistry registry, MetricResolver resolver) {
    this.bean = bean;
    this.registry = registry;
    this.resolver = resolver;
}
 
Example #6
Source File: ExceptionMeteredInterceptor.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
@Inject
private ExceptionMeteredInterceptor(@Intercepted Bean<?> bean, MetricRegistry registry, MetricResolver resolver) {
    this.bean = bean;
    this.registry = registry;
    this.resolver = resolver;
}