@Test public void testEmbeddedAnnotationWithEmbeddedController() { final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerEmbeddedControllerProducer.class); extension.processEmbeddedController(annotatedType); verify(annotatedType, never()).veto(); }
public <T> void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { removeControllerClassFromCDIContext(event); } } }
ControllerExtension implements Extension { public <T> void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { removeControllerClassFromCDIContext(event); } } } }
ControllerExtension implements Extension { public <T> void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { removeControllerClassFromCDIContext(event); } } }  }
ControllerExtension implements Extension { public <T> void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { 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 processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { removeControllerClassFromCDIContext(event); } } }  void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event); void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event);  }