public class ProvisioningContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FOLLOW_REPOSITORY_REFERENCES
Instructs the provisioning context to follow metadata repository references when
providing queryables for obtaining metadata and artifacts.
|
Constructor and Description |
---|
ProvisioningContext(IProvisioningAgent agent)
Creates a new provisioning context that includes all available metadata and
artifact repositories available to the specified provisioning agent.
|
Modifier and Type | Method and Description |
---|---|
IQueryable<IArtifactDescriptor> |
getArtifactDescriptors(IProgressMonitor monitor)
Returns a queryable that can be used to obtain any artifact descriptors that
are needed for the provisioning operation.
|
IQueryable<IArtifactKey> |
getArtifactKeys(IProgressMonitor monitor)
Returns a queryable that can be used to obtain any artifact keys that
are needed for the provisioning operation.
|
IQueryable<IArtifactRepository> |
getArtifactRepositories(IProgressMonitor monitor)
Returns a queryable that can be used to obtain any artifact repositories that
are needed for the provisioning operation.
|
List<IInstallableUnit> |
getExtraInstallableUnits()
Returns the list of additional installable units that should be considered as
available for installation by the planner.
|
IQueryable<IInstallableUnit> |
getMetadata(IProgressMonitor monitor)
Returns a queryable that can be used to obtain any metadata (installable units)
that are needed for the provisioning operation.
|
Map<String,String> |
getProperties()
Returns the properties that are defined in this context.
|
String |
getProperty(String key)
Returns the value of the property with the given key, or
null
if no such property is defined |
void |
setArtifactRepositories(URI[] artifactRepositories)
Sets the artifact repositories to consult when performing an operation.
|
void |
setExtraInstallableUnits(List<IInstallableUnit> extraIUs)
Sets the list of additional installable units that should be considered as
available for installation by the planner.
|
void |
setMetadataRepositories(URI[] metadataRepositories)
Sets the metadata repositories to consult when performing an operation.
|
void |
setProperty(String key,
String value)
Sets a property on this provisioning context.
|
String |
toString() |
public static final String FOLLOW_REPOSITORY_REFERENCES
public ProvisioningContext(IProvisioningAgent agent)
agent
- the provisioning agent from which to obtain any necessary services.public IQueryable<IArtifactKey> getArtifactKeys(IProgressMonitor monitor)
monitor
- a progress monitor to be used when creating the queryablesetArtifactRepositories(URI[])
public IQueryable<IArtifactDescriptor> getArtifactDescriptors(IProgressMonitor monitor)
monitor
- a progress monitor to be used when creating the queryablesetArtifactRepositories(URI[])
public IQueryable<IArtifactRepository> getArtifactRepositories(IProgressMonitor monitor)
monitor
- a progress monitor to be used when creating the queryablesetArtifactRepositories(URI[])
public IQueryable<IInstallableUnit> getMetadata(IProgressMonitor monitor)
monitor
- a progress monitor to be used when creating the queryablesetMetadataRepositories(URI[])
,
FOLLOW_REPOSITORY_REFERENCES
public List<IInstallableUnit> getExtraInstallableUnits()
public Map<String,String> getProperties()
public String getProperty(String key)
null
if no such property is definedkey
- the property keynull
public void setArtifactRepositories(URI[] artifactRepositories)
The provisioning context has a distinct lifecycle, whereby the metadata and artifact repositories to be used are determined when the client retrieves the metadata queryable. Clients should not reset the list of artifact repository locations once the metadata queryable has been retrieved.
artifactRepositories
- the artifact repository locationspublic void setMetadataRepositories(URI[] metadataRepositories)
The provisioning context has a distinct lifecycle, whereby the metadata and artifact repositories to be used are determined when the client retrieves the metadata queryable. Clients should not reset the list of metadata repository locations once the metadata queryable has been retrieved.
metadataRepositories
- the metadata repository locationspublic void setExtraInstallableUnits(List<IInstallableUnit> extraIUs)
extraIUs
- the extra installable unitspublic void setProperty(String key, String value)
key
- the property keyvalue
- the property value
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.