public interface ServiceLocator
RepositorySystem repoSystem = serviceLocator.getService( RepositorySystem.class );to acquire the repository system. Components that implement
Servicewill be given an opportunity to acquire further components from the locator, thereby allowing to create the complete object graph of the repository system.
<T> T getService(Class<T> type)
T- The service type.
type- The interface describing the service, must not be
nullif the service could not be located/initialized.
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.