Tabnine Logo
ApplicationContext.checkStrictServices
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.b2international.snowowl/com.b2international.snowowl.core

/**
 * Checks the current application state and throws exceptions if errors have
 * been found.
 * 
 * @throws InitializationException
 *             - on application init failures
 */
private void checkApplicationState() throws InitializationException {
  // check all registered services
  final Collection<ServiceRegistryEntry<?>> failedServices = this.environment.services().checkStrictServices();
  if (!failedServices.isEmpty()) {
    final String errorMessage = serviceRegistryErrorMessage(failedServices);
    throw new InitializationException(errorMessage);
  }
}
com.b2international.snowowl.coreApplicationContextcheckStrictServices

Javadoc

Checks the availability of the registered services strictly, which means that null implementations are not acceptable.

Popular methods of ApplicationContext

  • getInstance
    Factory method.
  • getServiceForClass
    Returns with the service registered for the class argument key from the shared application context.
  • 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
  • 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

  • Finding current android device location
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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