@Override public void start(BundleContext bundleContext) throws Exception { Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { XOWLConsistencyService service = new XOWLConsistencyService(); bundleContext.registerService(Service.class, service, null); bundleContext.registerService(SecuredService.class, service, null); bundleContext.registerService(HttpApiService.class, service, null); bundleContext.registerService(MeasurableService.class, service, null); bundleContext.registerService(ConsistencyService.class, service, null); } }, bundleContext); }
@Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { Register.waitFor(HttpService.class, new RegisterWaiter<HttpService>() { @Override public void onAvailable(BundleContext bundleContext, HttpService component) { try { component.registerServlet(PlatformHttp.getUriPrefixApi(), server, null, new XOWLMainHTTPContext(component)); } catch (Exception exception) { Logging.get().error(exception); } } }, bundleContext); } }, bundleContext);
@Override public void start(BundleContext bundleContext) throws Exception { Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { XOWLImpactAnalysisService service = new XOWLImpactAnalysisService(); bundleContext.registerService(Service.class, service, null); bundleContext.registerService(SecuredService.class, service, null); bundleContext.registerService(HttpApiService.class, service, null); bundleContext.registerService(ImpactAnalysisService.class, service, null); bundleContext.registerService(JobFactory.class, new XOWLImpactAnalysisJobFactory(), null); } }, bundleContext); }
@Override public void start(final BundleContext bundleContext) throws Exception { Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { bundleContext.registerService(DeserializerFactory.class, new DeserializerFactoryForCollaboration(), null); bundleContext.registerService(JobFactory.class, new CollaborationJobFactory(), null); XOWLCollaborationService collaborationService = new XOWLCollaborationService(); bundleContext.registerService(Service.class, collaborationService, null); bundleContext.registerService(SecuredService.class, collaborationService, null); bundleContext.registerService(HttpApiService.class, collaborationService, null); bundleContext.registerService(ManagedService.class, collaborationService, null); bundleContext.registerService(CollaborationService.class, collaborationService, null); bundleContext.registerService(CollaborationLocalService.class, collaborationService, null); bundleContext.registerService(CollaborationNetworkService.class, collaborationService, null); XOWLNetworkProvider networkProvider = new XOWLNetworkProvider(); bundleContext.registerService(CollaborationNetworkServiceProvider.class, networkProvider, null); XOWLPatternProvider patternProvider = new XOWLPatternProvider(); bundleContext.registerService(CollaborationPatternProvider.class, patternProvider, null); } }, bundleContext); }
@Override public void start(final BundleContext bundleContext) throws Exception { Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { XOWLWebModuleDirectory moduleDirectory = new XOWLWebModuleDirectory(); bundleContext.registerService(Service.class, moduleDirectory, null); bundleContext.registerService(HttpApiService.class, moduleDirectory, null); bundleContext.registerService(WebUIContribution.class, new XOWLMainContribution(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleCore(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleCollaboration(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleAdmin(), null); Register.waitFor(HttpService.class, new RegisterWaiter<HttpService>() { @Override public void onAvailable(BundleContext bundleContext, HttpService component) { try { component.registerResources(PlatformHttp.getUriPrefixWeb(), PlatformHttp.getUriPrefixWeb(), new XOWLHttpContext(component)); } catch (Exception exception) { Logging.get().error(exception); } } }, bundleContext); } }, bundleContext); }
@Override public void start(final BundleContext bundleContext) throws Exception { bundleContext.registerService(DeserializerFactory.class, new DeserializerFactoryForConnection(), null); Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { XOWLConnectionService connectionService = new XOWLConnectionService(); bundleContext.registerService(Service.class, connectionService, null); bundleContext.registerService(SecuredService.class, connectionService, null); bundleContext.registerService(HttpApiService.class, connectionService, null); bundleContext.registerService(ManagedService.class, connectionService, null); bundleContext.registerService(ConnectionService.class, connectionService, null); bundleContext.registerService(JobFactory.class, new ConnectorJobFactory(), null); } }, bundleContext); }
@Override public void start(BundleContext bundleContext) throws Exception { server = new XOWLMainHTTPServer(); bundleContext.registerService(Service.class, server, null); bundleContext.registerService(HTTPServerService.class, server, new Hashtable<String, Object>()); bundleContext.registerService(WebUIContribution.class, new XOWLHttpApiDocumentationModule(), null); Register.waitFor(PlatformHttp.class, new RegisterWaiter<PlatformHttp>() { @Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { Register.waitFor(HttpService.class, new RegisterWaiter<HttpService>() { @Override public void onAvailable(BundleContext bundleContext, HttpService component) { try { component.registerServlet(PlatformHttp.getUriPrefixApi(), server, null, new XOWLMainHTTPContext(component)); } catch (Exception exception) { Logging.get().error(exception); } } }, bundleContext); } }, bundleContext); }
@Override public void onAvailable(BundleContext bundleContext, PlatformHttp component) { XOWLWebModuleDirectory moduleDirectory = new XOWLWebModuleDirectory(); bundleContext.registerService(Service.class, moduleDirectory, null); bundleContext.registerService(HttpApiService.class, moduleDirectory, null); bundleContext.registerService(WebUIContribution.class, new XOWLMainContribution(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleCore(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleCollaboration(), null); bundleContext.registerService(WebModule.class, new XOWLWebModuleAdmin(), null); Register.waitFor(HttpService.class, new RegisterWaiter<HttpService>() { @Override public void onAvailable(BundleContext bundleContext, HttpService component) { try { component.registerResources(PlatformHttp.getUriPrefixWeb(), PlatformHttp.getUriPrefixWeb(), new XOWLHttpContext(component)); } catch (Exception exception) { Logging.get().error(exception); } } }, bundleContext); } }, bundleContext);