blob: 784e5a673bc3509419aee49660dadfe680a5e840 [file] [log] [blame]
package org.eclipse.update.core;
/*
* (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
import java.net.URL;
import org.eclipse.core.runtime.IAdaptable;
/**
* Install handler entry.
* Associates an optional custom install handler with the feature.
* Install handlers must implement the IInstallHandler interface.
* <p>
* Clients may implement this interface. However, in most cases clients should
* directly instantiate or subclass the provided implementation of this
* interface.
* </p>
* @see org.eclipse.update.core.InstallHandlerEntry
* @see org.eclipse.update.core.IInstallHandler
* @since 2.0
*/
public interface IInstallHandlerEntry extends IAdaptable {
/**
* Returns optional URL used for browser-triggered installation handling.
*
* @return url
* @since 2.0
*/
public URL getURL();
/**
* Returns optional name of a library containing the install
* handler classes. If specified, the referenced library
* must be contained in the feature archive.
*
* @return install handler library name
* @since 2.0
*/
public String getLibrary();
/**
* Returns install handler name.
* It is interpreted depending on the value of the library
* specification. If library is not specified, the name
* is intepreted as an identifier of a "global" install
* handler registered in the <code>org.eclipse.update.core.installHandlers</code>
* extension point. If library is specified, the name is interpreted
* as a fully qualified name of a class contained in the
* library. In both cases, the resulting class must
* implement IInstallHandler. The class is dynamically loaded and
* called at specific points during feature processing.
* The handler has visibility to the API classes from the update plug-in,
* and plug-ins required by the update plugin.
*
* @see IInstallHandler
* @return handler name
* @since 2.0
*/
public String getHandlerName();
}