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()
IResolutionContext
EventBus
to use to broadcast and receive events.getEventBus
in interface IResolutionContext
public IGraph<URI> getGraph()
IResolutionContext
getGraph
in interface IResolutionContext
public DependencyGraphUpdater<URI> getGraphUpdater()
IResolutionContext
getGraphUpdater
in interface IResolutionContext
public ResourceComputationScheduler<URI> getScheduler()
IResolutionContext
getScheduler
in interface IResolutionContext
public ModelResourceListener getModelResourceListener()
IResolutionContext
getModelResourceListener
in interface IResolutionContext
public IResourceDependencyProvider getDependencyProvider()
IResolutionContext
getDependencyProvider
in interface IResolutionContext
public IResourceDependencyLocalResolver getLocalResolver()
IResolutionContext
getLocalResolver
in interface IResolutionContext
public IResourceDependencyRemoteResolver getRemoteResolver()
IResolutionContext
getRemoteResolver
in interface IResolutionContext
public IImplicitDependencies getImplicitDependencies()
IResolutionContext
getImplicitDependencies
in interface IResolutionContext
public void initialize()
graphUpdater
to its eventBus
scheduler
initialize
in interface IResolutionContext
public void dispose()
dispose
in interface IResolutionContext
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.