| |
|
| java.lang.Object net.refractions.udig.project.IProvider
IProvider | abstract public class IProvider (Code) | | Provides an object of type T. Used to populate the IBlackboard with default values.
This is used by the net.refractions.udig.project.provider extension point
author: Jesse since: 1.0.0 |
Method Summary | |
public IExtension | getExtension() | public String | getKey() | abstract public Class<T> | getProvidee() Returns the class of the object being provided. | abstract public T | provide() Signals the provider to provide an object of the specified class. | public void | setExtension(IExtension extension) Sets the extension that provier originated from. | public void | setKey(String key) |
XPID | final public static String XPID(Code) | | Extension point id. *
|
extension | IExtension extension(Code) | | the extension configuration element *
|
getExtension | public IExtension getExtension()(Code) | | the extension the provider originated from. |
getKey | public String getKey()(Code) | | the key that is used to identify the object being provided. |
getProvidee | abstract public Class<T> getProvidee()(Code) | | Returns the class of the object being provided. How this class relates to the class of
objects being provided (via inheritance) is up to the client of the provider.
The type of the object being provider (the providee). |
provide | abstract public T provide()(Code) | | Signals the provider to provide an object of the specified class. If the object can not be
provided.
The object being provided, otherwise null. |
setExtension | public void setExtension(IExtension extension)(Code) | | Sets the extension that provier originated from. This method should not be called by client
code.
Parameters: extension - The extension in which the provider was instantiated. |
setKey | public void setKey(String key)(Code) | | Parameters: key - the key that is used to identify the object being provided. |
|
|
|