@Deprecated public interface ServiceLocator
RepositorySystem repoSystem = serviceLocator.getService( RepositorySystem.class );to acquire the repository system. Components that implement
Service
will be given an opportunity to acquire
further components from the locator, thereby allowing to create the complete object graph of the repository system.Modifier and Type | Method and Description |
---|---|
<T> T |
getService(Class<T> type)
Deprecated.
Gets an instance of the specified service.
|
<T> List<T> |
getServices(Class<T> type)
Deprecated.
Gets all available instances of the specified service.
|
<T> T getService(Class<T> type)
T
- The service type.type
- The interface describing the service, must not be null
.null
if the service could not be located/initialized.<T> List<T> getServices(Class<T> type)
T
- The service type.type
- The interface describing the service, must not be null
.null
.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.