@Test public void testStandaloneSetup() { System.setProperty(ControllerUtils.KIE_SERVER_CONTROLLER, "http: Set<Class<?>> scanned = Sets.newSet(WebSocketKieServerControllerImpl.class, WebSocketKieServerControllerNotification.class, WebSocketKieServerMgmtControllerImpl.class); Set<Class<?>> result = config.getAnnotatedEndpointClasses(scanned); assertTrue(result.isEmpty()); }
@Override public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) { if(ControllerUtils.useEmbeddedController() == false) { LOGGER.info("Standalone controller in use, removing Web Socket endpoints"); scanned.remove(WebSocketKieServerControllerImpl.class); scanned.remove(WebSocketKieServerControllerNotification.class); scanned.remove(WebSocketKieServerMgmtControllerImpl.class); } return scanned; }
StandaloneControllerApplicationConfig implements ServerApplicationConfig { @Override public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) { if(ControllerUtils.useEmbeddedController() == false) { LOGGER.info("Standalone controller in use, removing Web Socket endpoints"); scanned.remove(WebSocketKieServerControllerImpl.class); scanned.remove(WebSocketKieServerControllerNotification.class); scanned.remove(WebSocketKieServerMgmtControllerImpl.class); } return scanned; } }
StandaloneControllerApplicationConfig implements ServerApplicationConfig { @Override public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) { if(ControllerUtils.useEmbeddedController() == false) { LOGGER.info("Standalone controller in use, removing Web Socket endpoints"); scanned.remove(WebSocketKieServerControllerImpl.class); scanned.remove(WebSocketKieServerControllerNotification.class); scanned.remove(WebSocketKieServerMgmtControllerImpl.class); } return scanned; }  }
StandaloneControllerApplicationConfig implements ServerApplicationConfig { @Override public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) { if(ControllerUtils.useEmbeddedController() == false) { LOGGER.info("Standalone controller in use, removing Web Socket endpoints"); scanned.remove(WebSocketKieServerControllerImpl.class); scanned.remove(WebSocketKieServerControllerNotification.class); scanned.remove(WebSocketKieServerMgmtControllerImpl.class); } return scanned; }  @Override Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> endpointClasses); @Override Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned); }
StandaloneControllerApplicationConfig implements ServerApplicationConfig { @Override public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) { if(ControllerUtils.useEmbeddedController() == false) { LOGGER.info("Standalone controller in use, removing Web Socket endpoints"); scanned.remove(WebSocketKieServerControllerImpl.class); scanned.remove(WebSocketKieServerControllerNotification.class); scanned.remove(WebSocketKieServerMgmtControllerImpl.class); } return scanned; }  @Override Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> endpointClasses); @Override Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned);  }