congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ApplicationContext.getServiceForClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getServiceForClass
method
in
com.b2international.snowowl.core.ApplicationContext

Best Java code snippets using com.b2international.snowowl.core.ApplicationContext.getServiceForClass (Showing top 20 results out of 315)

origin: com.b2international.snowowl/com.b2international.snowowl.snomed.scg

  @Override
  public IEventBus get() {
    return ApplicationContext.getServiceForClass(IEventBus.class);
  }
};
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

private ISnomedBrowserAxiomService getAxiomService() {
  if (axiomService == null) {
    axiomService = ApplicationContext.getServiceForClass(ISnomedBrowserAxiomService.class);
  }
  return axiomService;
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

private static Notifications getNotifications() {
  return ApplicationContext.getServiceForClass(Notifications.class);
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

private static ICDOConnectionManager getConnectionManager() {
  return ApplicationContext.getServiceForClass(ICDOConnectionManager.class);
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

private static SnomedReasonerService getReasonerService(boolean isExternalClassificationRequest) {
  if (isExternalClassificationRequest) {
    return ApplicationContext.getServiceForClass(SnomedExternalReasonerService.class);
  }
  return ApplicationContext.getServiceForClass(SnomedInternalReasonerService.class);
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

  private IDatastoreOperationLockManager getLockManager() {
    return ApplicationContext.getServiceForClass(IDatastoreOperationLockManager.class);
  }
}
origin: com.b2international.snowowl/com.b2international.snowowl.core

  protected IEventBus getBus() {
    return ApplicationContext.getServiceForClass(IEventBus.class);
  }
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

public ValidationRelationshipService(String branchPath) {
  this.branchPath = branchPath;
  this.bus = ApplicationContext.getServiceForClass(IEventBus.class);
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

public ValidationConceptService(String branchPath) {
  this.branchPath = branchPath;
  this.bus = ApplicationContext.getServiceForClass(IEventBus.class);
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

public ValidationDescriptionService(String branchPath, Set<String> caseSignificantWords, Multimap<String, String> refsetToLanguageSpecificWordsMap) {
  this.branchPath = branchPath;
  this.bus = ApplicationContext.getServiceForClass(IEventBus.class);
  this.descriptionService = new DescriptionService(bus, branchPath);
  this.caseSignificantWords = caseSignificantWords;
  this.refsetToLanguageSpecificWordsMap = refsetToLanguageSpecificWordsMap;
  this.topLevelConceptIds = getTopLevelConceptIds();
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

@Override
public Collection<Role> authenticate(final String userId, final String password) throws LoginException {
  authenticator.login(userId, password);
  final Collection<Role> roles = collectRoles(ApplicationContext.getServiceForClass(IAuthorizationService.class), userId);
  return roles;
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

public AxiomRelationshipConversionService getConversionService() {
  if (conversionService == null) {
    conversionService = ApplicationContext.getServiceForClass(ISnomedBrowserAxiomService.class).getConversionService(getBranch().path());
  }
  return conversionService;
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

public SnomedTraceabilityChangeProcessor(final IBranchPath branchPath, ObjectWriter objectWriter) {
  this.branchPath = checkNotNull(branchPath);
  this.objectWriter = checkNotNull(objectWriter);
  this.index = ApplicationContext.getServiceForClass(RepositoryManager.class).get(SnomedDatastoreActivator.REPOSITORY_UUID).service(RevisionIndex.class);
  this.collectSystemChanges = collectSystemChanges(branchPath.getPath());
  this.descriptionLookupService = new SnomedDescriptionLookupService();
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.impl

private boolean collectSystemChanges(String branch) {
  
  if (isDeltaImportInProgress(branch) || isClassificationInProgress(branch)) {
    return true;
  }
  
  return ApplicationContext.getServiceForClass(SnomedCoreConfiguration.class).isCollectSystemChanges();
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.api.rest

private boolean isExternalServiceConfigPresent() {
  SnomedCoreConfiguration snomedConfig = ApplicationContext.getServiceForClass(SnomedCoreConfiguration.class);
  return snomedConfig.getClassificationConfig() != null && snomedConfig.getClassificationConfig().isExternalClassificationServiceConfigured();
}
origin: com.b2international.snowowl/com.b2international.snowowl.snomed.scg

  private SnomedDescription getPt(String id) {
    return SnomedRequests.prepareGetConcept(id)
        .setExpand("pt()")
        .setLocales(ApplicationContext.getServiceForClass(LanguageSetting.class).getLanguagePreference())
        .build(SnomedDatastoreActivator.REPOSITORY_UUID, branch)
        .execute(ApplicationContext.getServiceForClass(IEventBus.class))
        .getSync().getPt();
  }
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

private Collection<ICodeSystemVersion> getAllTags(final String repositoryId, final boolean decorateWithPatched) {
  final CodeSystemVersions versions = CodeSystemRequests.prepareSearchCodeSystemVersion()
    .all()
    .build(repositoryId)
    .execute(ApplicationContext.getServiceForClass(IEventBus.class))
    .getSync();
  
  return Collections.<ICodeSystemVersion>unmodifiableCollection(newHashSet(decorateWithPatched ? decorateWithPatchedFlag(repositoryId, versions.getItems()) : versions));
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

private CDOView openView(final HistoryInfoConfiguration configuration) {
  final long cdoId = configuration.getStorageKey();
  final ICDOConnection connection = getServiceForClass(ICDOConnectionManager.class).get(cdoId);
  final CDOBranch branch = connection.getBranch(configuration.getBranchPath());
  return connection.createView(branch, UNSPECIFIED_DATE, false);
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

  OperationLockRunner.with(lockManager).run(new Runnable() { @Override public void run() {
    final IEventBus bus = ApplicationContext.getServiceForClass(IEventBus.class);
    RepositoryRequests
      .branching()
      .prepareCreate()
      .setParent(branchPath.getPath())
      .setName(versionId)
      .build(repositoryId)
      .execute(bus).getSync();
  }}, lockContext, IOperationLockManager.IMMEDIATE, lockTarget);
} catch (final OperationLockException | InterruptedException e) {
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

@Override
protected boolean isApplicable(String repositoryId, IBranchPath taskBranchPath) throws Throwable {
  if (!super.isApplicable(repositoryId, taskBranchPath)) {
    return false;
  }
  
  final IEventBus eventBus = ApplicationContext.getServiceForClass(IEventBus.class);
  final Branch branch = RepositoryRequests.branching()
      .prepareGet(taskBranchPath.getPath())
      .build(repositoryId)
      .execute(eventBus)
      .getSync();
  
  return branch.canRebase();
}
com.b2international.snowowl.coreApplicationContextgetServiceForClass

Javadoc

Returns with the service registered for the class argument key from the shared application context.

Popular methods of ApplicationContext

  • getInstance
    Factory method.
  • getService
  • getServiceChecked
    Returns with the service instance associated with the passed in service interface. May throw runtime
  • registerService
  • isServerMode
    Returns true if the application for the current application context is running in server mode. Other
  • <init>
  • addServiceListener
  • checkStrictServices
    Checks the availability of the registered services strictly, which means that null implementations
  • dispose
  • exists
    Returns true if a the service given with it interface is registered to the application context with
  • getServiceEntry
  • getServiceInfo
    Initializes the project specific MultiStatus object for generic serviceablility support for the plug
  • getServiceEntry,
  • getServiceInfo

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now