Refine search
public Shell getShell() { // Get all Services implement Shell interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(Shell.class.getName(), null); for (ServiceReference<?> ref : references) { return (Shell) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load Shell on DefaultFileManager."); return null; } }
/** * @throws Exception If failed. */ @Test public void testServiceExposedAndCallbacksInvoked() throws Exception { assertNotNull(ignite); assertEquals("testGrid", ignite.name()); TestOsgiFlags flags = (TestOsgiFlags) bundleCtx.getService( bundleCtx.getAllServiceReferences(TestOsgiFlags.class.getName(), null)[0]); assertNotNull(flags); assertEquals(Boolean.TRUE, flags.getOnBeforeStartInvoked()); assertEquals(Boolean.TRUE, flags.getOnAfterStartInvoked()); // The bundle is still not stopped, therefore these callbacks cannot be tested. assertNull(flags.getOnBeforeStopInvoked()); assertNull(flags.getOnAfterStopInvoked()); // No exceptions. assertNull(flags.getOnAfterStartThrowable()); assertNull(flags.getOnAfterStopThrowable()); }
public PackagingProviderRegistry getPackagingProviderRegistry() { // Get all Services implement UndoManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(PackagingProviderRegistry.class.getName(), null); for (ServiceReference<?> ref : references) { return (PackagingProviderRegistry) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load PackagingProviderRegistry on MavenOperationsImpl."); return null; } }
public ProcessManager getProcessManager() { // Get all components implement ProcessManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProcessManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProcessManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProcessManager on ProcessManagerCommands."); return null; } }
public ProcessManager getProcessManager() { // Get all Services implement ProcessManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProcessManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProcessManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProcessManager on MavenOperationsImpl."); return null; } }
public StartLevel getStartLevel() { // Get all Services implement StartLevel interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(StartLevel.class.getName(), null); for (ServiceReference<?> ref : references) { return (StartLevel) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load StartLevel on DefaultProcessManager."); return null; } }
public ProcessManager getProcessManager() { // Get all components implement ProcessManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProcessManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProcessManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProcessManager on ProcessManagerDiagnosticListener."); return null; } }
public NotifiableFileMonitorService getFileMonitorService() { // Get all Services implement NotifiableFileMonitorService interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(NotifiableFileMonitorService.class.getName(), null); for (ServiceReference<?> ref : references) { return (NotifiableFileMonitorService) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load NotifiableFileMonitorService on DefaultFileManager."); return null; } }
public ProcessManager getProcessManager() { // Get all Services implement ProcessManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProcessManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProcessManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProcessManager on DefaultFileManager."); return null; } }
public FilenameResolver getFileNameResolver() { // Get all Services implement FilenameResolver interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(FilenameResolver.class.getName(), null); for (ServiceReference<?> ref : references) { return (FilenameResolver) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load FilenameResolver on DefaultFileManager."); return null; } }
public FileMonitorService getFileMonitorService() { // Get all Services implement FileMonitorService interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(FileMonitorService.class.getName(), null); for (ServiceReference<?> ref : references) { return (FileMonitorService) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load FileMonitorService on DefaultProcessManager."); return null; } }
public UndoManager getUndoManager() { // Get all Services implement UndoManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(UndoManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (UndoManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load UndoManager on DefaultProcessManager."); return null; } }
public Shell getShell() { // Get all Shell implement Shell interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(Shell.class.getName(), null); for (ServiceReference<?> ref : references) { return (Shell) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load Shell on ProcessManagerCommands."); return null; } }
protected ProjectOperations getProjectOperations() { // Get all Services implement ProjectOperations interface try { ServiceReference<?>[] references = context.getAllServiceReferences(ProjectOperations.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProjectOperations) context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProjectOperations on IdentifierMetadataProviderImpl."); return null; } } }
public ProjectOperations getProjectOperations() { // Get all Services implement ProjectOperations interface try { ServiceReference<?>[] references = context.getAllServiceReferences(ProjectOperations.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProjectOperations) context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProjectOperations on JpaEntityMetadataProviderImpl."); return null; } } }
public MetadataService getMetadataService() { // Get all Services implement MetadataService interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(MetadataService.class.getName(), null); for (ServiceReference<?> ref : references) { return (MetadataService) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load MetadataService on MemberDetailsScannerImpl."); return null; } } }
public Shell getShell() { // Get all Shell implement Shell interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(Shell.class.getName(), null); for (ServiceReference<?> ref : references) { return (Shell) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load Shell on ProcessManagerDiagnosticListener."); return null; } } }
public ProjectOperations getProjectOperations() { // Get all Services implement ProjectOperations interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProjectOperations.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProjectOperations) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProjectOperations on GaeOperationsImpl."); return null; } } }
public ProjectOperations getProjectOperations() { // Get all Services implement ProjectOperations interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(ProjectOperations.class.getName(), null); for (ServiceReference<?> ref : references) { return (ProjectOperations) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load ProjectOperations on DatabaseDotComOperationsImpl."); return null; } } }
public UndoManager getUndoManager() { // Get all Services implement UndoManager interface try { ServiceReference<?>[] references = this.context.getAllServiceReferences(UndoManager.class.getName(), null); for (ServiceReference<?> ref : references) { return (UndoManager) this.context.getService(ref); } return null; } catch (InvalidSyntaxException e) { LOGGER.warning("Cannot load UndoManager on DefaultFileManager."); return null; } } }