@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)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public DefaultOfflineController setLoggerFactory(LoggerFactory loggerFactory)
public void checkOffline(RepositorySystemSession session, RemoteRepository repository) throws RepositoryOfflineException
OfflineControllercheckOffline in interface OfflineControllersession - The repository session during which the check is made, must not be nullrepository - 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.