Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core
Interface IDynamicPreset

All Superinterfaces:
IPreset

public interface IDynamicPreset
extends IPreset

A dynamic preset is type of preset that needs to be resolved before it can be used. The resolve operation relies the IPresetFactory specified when the dynamic preset is registered via the presets extension point and can take into account the context in which the preset will be used.

Since:
2.0
Author:
Konstantin Komissarchik

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.wst.common.project.facet.core.IPreset
IPreset.Type
 
Field Summary
static String CONTEXT_KEY_FACETED_PROJECT
          The key of the context map entry whose value is an IFacetedProjectBase object.
static String CONTEXT_KEY_FIXED_FACETS
          The key of the context map entry whose value is a set of IProjectFacet objects representing the fixed facets.
static String CONTEXT_KEY_PRIMARY_RUNTIME
          The key of the context map entry whose value is the primary runtime (IRuntime) or null if no runtime has been selected.
 
Method Summary
 IPreset resolve(Map<String,Object> context)
          Resolves the dynamic preset using the provided context information.
 
Methods inherited from interface org.eclipse.wst.common.project.facet.core.IPreset
getDescription, getId, getLabel, getProjectFacets, getType, isUserDefined
 

Field Detail

CONTEXT_KEY_FACETED_PROJECT

static final String CONTEXT_KEY_FACETED_PROJECT
The key of the context map entry whose value is an IFacetedProjectBase object.

Since:
3.0
See Also:
Constant Field Values

CONTEXT_KEY_FIXED_FACETS

static final String CONTEXT_KEY_FIXED_FACETS
The key of the context map entry whose value is a set of IProjectFacet objects representing the fixed facets.

See Also:
Constant Field Values

CONTEXT_KEY_PRIMARY_RUNTIME

static final String CONTEXT_KEY_PRIMARY_RUNTIME
The key of the context map entry whose value is the primary runtime (IRuntime) or null if no runtime has been selected.

See Also:
Constant Field Values
Method Detail

resolve

IPreset resolve(Map<String,Object> context)
Resolves the dynamic preset using the provided context information. If this preset is not applicable to the provided context, this method will return null.

Parameters:
context - the information about context that this preset will be used in
Returns:
the resolved preset or null

Faceted Project Framework
Version 1.3

Copyright (c) 2008 BEA Systems, Inc. and others. All rights reserved.