public class DefaultResolutionContext extends Object implements IResolutionContext
IResolutionContext.| Constructor and Description |
|---|
DefaultResolutionContext(com.google.common.eventbus.EventBus eventBus,
IGraph<URI> graph,
DependencyGraphUpdater<URI> graphUpdater,
ResourceComputationScheduler<URI> scheduler,
ModelResourceListener modelResourceListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes resources allocated during initialization.
|
IResourceDependencyProvider |
getDependencyProvider()
The provider of dependencies between resources / URIs
|
com.google.common.eventbus.EventBus |
getEventBus()
The
EventBus to use to broadcast and receive events. |
IGraph<URI> |
getGraph()
The graph of dependencies.
|
DependencyGraphUpdater<URI> |
getGraphUpdater()
The graph updater, in charge of making changes to the dependency graph.
|
IImplicitDependencies |
getImplicitDependencies()
The implicit dependencies provider.
|
IResourceDependencyLocalResolver |
getLocalResolver()
The resolver for local resources.
|
ModelResourceListener |
getModelResourceListener()
The listener of model resource changes.
|
IResourceDependencyRemoteResolver |
getRemoteResolver()
The resolver for "remote" (git) resources.
|
ResourceComputationScheduler<URI> |
getScheduler()
The scheduler used to support multi-threading.
|
void |
initialize()
Initializes the context.
|
public DefaultResolutionContext(com.google.common.eventbus.EventBus eventBus,
IGraph<URI> graph,
DependencyGraphUpdater<URI> graphUpdater,
ResourceComputationScheduler<URI> scheduler,
ModelResourceListener modelResourceListener)
public com.google.common.eventbus.EventBus getEventBus()
IResolutionContextEventBus to use to broadcast and receive events.getEventBus in interface IResolutionContextpublic IGraph<URI> getGraph()
IResolutionContextgetGraph in interface IResolutionContextpublic DependencyGraphUpdater<URI> getGraphUpdater()
IResolutionContextgetGraphUpdater in interface IResolutionContextpublic ResourceComputationScheduler<URI> getScheduler()
IResolutionContextgetScheduler in interface IResolutionContextpublic ModelResourceListener getModelResourceListener()
IResolutionContextgetModelResourceListener in interface IResolutionContextpublic IResourceDependencyProvider getDependencyProvider()
IResolutionContextgetDependencyProvider in interface IResolutionContextpublic IResourceDependencyLocalResolver getLocalResolver()
IResolutionContextgetLocalResolver in interface IResolutionContextpublic IResourceDependencyRemoteResolver getRemoteResolver()
IResolutionContextgetRemoteResolver in interface IResolutionContextpublic IImplicitDependencies getImplicitDependencies()
IResolutionContextgetImplicitDependencies in interface IResolutionContextpublic void initialize()
graphUpdater to its eventBusschedulerinitialize in interface IResolutionContextpublic void dispose()
dispose in interface IResolutionContext
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.