Eclipse Platform
2.0

org.eclipse.update.core
Interface IFeatureFactory

All Known Implementing Classes:
BaseFeatureFactory

public interface IFeatureFactory

Feature factory interface. A feature factory is used to construct new instances of concrete features.

Clients may implement this interface. However, in most cases clients should directly instantiate or subclass the provided implementation of this interface.

Since:
2.0
See Also:
BaseFeatureFactory

Method Summary
 IFeature createFeature(URL url, ISite site)
          Returns a feature defined by the supplied URL.
 

Method Detail

createFeature

public IFeature createFeature(URL url,
                              ISite site)
                       throws CoreException
Returns a feature defined by the supplied URL. The feature is associated with the specified site.

The actual interpretation of the URL is feature-type specific. In most cases the URL will point to some feature-specific file that can be used (directly or indirectly) to construct the feature object.

Parameters:
url - URL interpreted by the feature
site - site to be associated with the feature
Returns:
concrete feature object
Throws:
CoreException
Since:
2.0

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.