/** * Returns the short value of the terminology component identifier associated with the given terminology component representation class. * @param terminologyComponentClass * @return */ public short getTerminologyComponentIdShort(Class<?> terminologyComponentClass) { return getTerminologyComponentIdAsShort(getTerminologyComponentId(terminologyComponentClass)); }
/** * Runs the application without any {@link PreRunRunnable} and the given * monitor. * * @param monitor * @throws Exception * @see #run(PreRunRunnable, IProgressMonitor) */ public void run(IProgressMonitor monitor) throws Exception { run(null, monitor); }
@Override public String apply(final ICoreTerminologyComponentInformation info) { return info.getId(); } });
@Override public <T> T getServiceImplementation(final Class<T> serviceInterface) { return ApplicationContext.getInstance().getService(serviceInterface); } }
@Override public IEventBus get() { return ApplicationContext.getServiceForClass(IEventBus.class); } };
@Override public IBeanValidationConstraint apply(IConfigurationElement input) { return (IBeanValidationConstraint) CoreTerminologyBroker.getInstance().createExecutableExtension(input); } }));
@Override public String load(final Short key) throws Exception { if (null == key) { return EMPTY_STRING; } final ICoreTerminologyComponentInformation information = // CoreTerminologyBroker.getInstance().getComponentInformation(key.shortValue()); return null == information ? EMPTY_STRING : information.getName(); } });
public SimpleFamilyJob(String name, Object family, boolean isUserJob, int priority) { this(name, family); setUser(isUserJob); setPriority(priority); }
public <T> void addServiceListener(final Class<T> serviceInterface, final IServiceChangeListener<T> listener) { final ServiceRegistryEntry<T> entry = getServiceEntry(serviceInterface); if (null != entry.implementation) { listener.serviceChanged(null, entry.implementation); } entry.listeners.add(listener); }
@Override public Byte getByte(String key) { return get(key, Byte.class); } }
/** * Bootstraps the application with a default configuration. * * @throws Exception * @see {@link #bootstrap(String)} */ public void bootstrap() throws Exception { bootstrap(null); }
/** * Logs the import warning with the given message. * * @param message the message to be logged. */ protected void logImportWarning(final String message) { LogUtils.logImportWarning(LOGGER, userId, branchPath, message); }
/** * Logs the import activity with the given message. * * @param message the message to be logged. */ protected void logImportActivity(final String message) { LogUtils.logImportActivity(LOGGER, userId, branchPath, message); }
public static CoreTerminologyBroker getInstance() { if (instance == null) { synchronized (CoreTerminologyBroker.class) { if (instance == null) instance = new CoreTerminologyBroker(); } } return instance; }
private ISnomedBrowserAxiomService getAxiomService() { if (axiomService == null) { axiomService = ApplicationContext.getServiceForClass(ISnomedBrowserAxiomService.class); } return axiomService; }
@Override public IContextValidationConstraint apply(IConfigurationElement input) { return (IContextValidationConstraint) CoreTerminologyBroker.getInstance().createExecutableExtension(input); } }));
@Override public Boolean getBoolean(final String key) { return get(key, Boolean.class); }
private static SnomedReasonerService getReasonerService(boolean isExternalClassificationRequest) { if (isExternalClassificationRequest) { return ApplicationContext.getServiceForClass(SnomedExternalReasonerService.class); } return ApplicationContext.getServiceForClass(SnomedInternalReasonerService.class); }
@Override public Integer getInt(String key) { return get(key, Integer.class); }
@Override public Float getFloat(String key) { return get(key, Float.class); }