Eclipse Platform
2.0

org.eclipse.update.core
Interface ISiteFactory

All Known Implementing Classes:
BaseSiteFactory

public interface ISiteFactory

Site factory interface. A site factory is used to construct new instances of concrete sites.

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:
BaseSiteFactory

Method Summary
 ISite createSite(URL url)
          Returns a site defined by the supplied URL.
 

Method Detail

createSite

public ISite createSite(URL url)
                 throws CoreException,
                        InvalidSiteTypeException
Returns a site defined by the supplied URL.

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

Parameters:
url - URL interpreted by the site
Returns:
site object
Throws:
CoreException
InvalidSiteTypeException - the referenced site type is not a supported type for this factory
Since:
2.0

Eclipse Platform
2.0

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