@Named @Component(role=OfflineController.class) public class DefaultOfflineController extends Object implements OfflineController, Service
Constructor and Description |
---|
DefaultOfflineController() |
Modifier and Type | Method and Description |
---|---|
void |
checkOffline(RepositorySystemSession session,
RemoteRepository repository)
Determines whether the specified repository is accessible according to the offline policy of the given session.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
DefaultOfflineController |
setLoggerFactory(LoggerFactory loggerFactory) |
public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public DefaultOfflineController setLoggerFactory(LoggerFactory loggerFactory)
public void checkOffline(RepositorySystemSession session, RemoteRepository repository) throws RepositoryOfflineException
OfflineController
checkOffline
in interface OfflineController
session
- The repository session during which the check is made, must not be null
repository
- The remote repository to check for accessibility, must not be null
.RepositoryOfflineException
- If the session forbids access to the repository.Copyright © 2010–2013 The Eclipse Foundation. All rights reserved.