.withClasses(Dao.class, LegacyInterceptor1.class, LegacyInterceptor2.class, LegacyInterceptor3.class,
WebApplicationGlobalInterceptor1.class)
.withBeansXml(
new Beans11DescriptorImpl().interceptors(
//
new BeansXmlClass(LegacyInterceptor1.class), new BeansXmlClass(LegacyInterceptor2.class),
new BeansXmlClass(LegacyInterceptor3.class),
// Disable GEI3
new BeansXmlClass(GloballyEnabledInterceptor3.class, false),
// Enabled GPI1
new BeansXmlClass(GloballyPrioritizedInterceptor1.class, true),
// Override global configuration
new BeansXmlClass(GloballyEnabledInterceptor5.class),
// Enabled WAGI globally
new BeansXmlClass(WebApplicationGlobalInterceptor1.class, 1008)))
.withBeanLibrary(
new Beans11DescriptorImpl().interceptors(
// globally enabled interceptors
new BeansXmlClass(GloballyEnabledInterceptor4.class, 1025), new BeansXmlClass(
GloballyEnabledInterceptor5.class, 800), new BeansXmlClass(
GloballyEnabledInterceptor1.class, 995), new BeansXmlClass(
GloballyEnabledInterceptor3.class, 1015),
// decorators with globally set priority (but disabled)
new BeansXmlClass(GloballyPrioritizedInterceptor1.class, false, 1015), new BeansXmlClass(
GloballyPrioritizedInterceptor2.class, false, 1020)), Transactional.class,
AbstractInterceptor.class, Service.class, GloballyEnabledInterceptor1.class,
GloballyEnabledInterceptor3.class, GloballyEnabledInterceptor4.class,
GloballyEnabledInterceptor5.class, GloballyPrioritizedInterceptor1.class,
GloballyPrioritizedInterceptor2.class)
.withBeanLibrary(
// globally enabled interceptors
new Beans11DescriptorImpl().interceptors(new BeansXmlClass(GloballyEnabledInterceptor2.class, 1005)),
GloballyEnabledInterceptor2.class).build();
}