Search in sources :

Example 1 with StepInterceptor

use of com.github.noraui.cucumber.interceptor.StepInterceptor in project NoraUi by NoraUi.

the class NoraUiModule method configure.

/**
 * {@inheritDoc}
 */
@Override
public void configure(Binder binder) {
    logger.debug("NORAUI NoraUiModule configure");
    binder.bindInterceptor(any(), annotatedWith(Conditioned.class), new ConditionedInterceptor());
    binder.bindInterceptor(Matchers.subclassesOf(com.github.noraui.application.steps.Step.class).or(Matchers.subclassesOf(BrowserSteps.class)), any(), new StepInterceptor());
    logger.debug("NORAUI service binding");
    binder.bind(ScreenService.class).to(ScreenServiceImpl.class).asEagerSingleton();
    binder.bind(UserNameService.class).to(UserNameServiceImpl.class).asEagerSingleton();
}
Also used : ConditionedInterceptor(com.github.noraui.cucumber.interceptor.ConditionedInterceptor) UserNameServiceImpl(com.github.noraui.service.impl.UserNameServiceImpl) ScreenServiceImpl(com.github.noraui.service.impl.ScreenServiceImpl) Conditioned(com.github.noraui.cucumber.annotation.Conditioned) StepInterceptor(com.github.noraui.cucumber.interceptor.StepInterceptor)

Aggregations

Conditioned (com.github.noraui.cucumber.annotation.Conditioned)1 ConditionedInterceptor (com.github.noraui.cucumber.interceptor.ConditionedInterceptor)1 StepInterceptor (com.github.noraui.cucumber.interceptor.StepInterceptor)1 ScreenServiceImpl (com.github.noraui.service.impl.ScreenServiceImpl)1 UserNameServiceImpl (com.github.noraui.service.impl.UserNameServiceImpl)1