Class OsgiServiceRegistryImplForTests
java.lang.Object
com.atlassian.confluence.impl.osgi.OsgiServiceRegistryImplForTests
- All Implemented Interfaces:
- OsgiServiceRegistry
Mock implementation for tests
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TgetService(Class<T> clazz) Provides an implementation of the given interface T that is guaranteed to be backed by the highest ranked OSGi service implementing T.
- 
Constructor Details- 
OsgiServiceRegistryImplForTestspublic OsgiServiceRegistryImplForTests()
 
- 
- 
Method Details- 
getServiceDescription copied from interface:OsgiServiceRegistryProvides an implementation of the given interface T that is guaranteed to be backed by the highest ranked OSGi service implementing T. The provided implementation will fail fast if the service is not available - it will NOT wait for the service to become available.It is expected callers will use this method to obtain services that they will invoke later in response to user activity. Invoking methods on returned implementation immediately will probably not work, unless you know what you're doing. - Specified by:
- getServicein interface- OsgiServiceRegistry
 
 
-