Interface ServiceProvider

All Known Implementing Classes:
DefaultServiceProvider, MockProvider

public interface ServiceProvider
A service provider.

A service provider is used by the framework to be able to change the way local services are found.

For example you may want to use a simple service provider for testing pourpose to avoid loading the nuxeo runtime framework to register services.

To set a service provider use: DefaultServiceProvider.setProvider(ServiceProvider)

Author:
Bogdan Stefanescu
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getService(Class<T> serviceClass)
    Gets the service instance given its API class.
  • Method Details

    • getService

      <T> T getService(Class<T> serviceClass)
      Gets the service instance given its API class.