@Test public void testStandaloneAnnotationWithEmbeddedController() { final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerStandaloneControllerProducer.class); extension.processStandaloneController(annotatedType); verify(annotatedType).veto(); }
public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } }
ControllerExtension implements Extension { public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } } }
ControllerExtension implements Extension { public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } }  }
ControllerExtension implements Extension { public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } }  void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event); void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event); }
ControllerExtension implements Extension { public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } }  void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event); void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event);  }