Faceted Project Framework
Version 1.3

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

All Known Implementing Classes:
DefaultConfigurationPresetFactory, MinimalConfigurationPresetFactory

public interface IPresetFactory

A preset factory is used for creating a dynamic preset. Unlike a static preset, which is fully specified from the start, a dynamic preset uses a factory to synthesize the preset definition on the fly based on the context in which it will be used.

Since:
2.0
Author:
Konstantin Komissarchik

Method Summary
 PresetDefinition createPreset(String presetId, Map<String,Object> context)
          The factory method for creating a preset definition.
 

Method Detail

createPreset

PresetDefinition createPreset(String presetId,
                              Map<String,Object> context)
                              throws CoreException
The factory method for creating a preset definition. The definition contains all of the information necessary for the system to create a preset. The factory can take into account the context that the preset will be used in when creating a preset definition. See IDynamicPreset for documentation on what type of information the context can contain.

Parameters:
presetId - the id of the preset
context - the information about context that this preset will be used in
Returns:
the created preset definition or null if this factory is not applicable to the provided context
Throws:
CoreException - if failed while creating the preset definition

Faceted Project Framework
Version 1.3

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