| org.netbeans.modules.turbo.TurboProvider
All known Subclasses: org.netbeans.modules.versioning.system.cvss.DiskMapTurboProvider, org.netbeans.modules.turbo.DefaultTurboProvider,
TurboProvider | public interface TurboProvider (Code) | | SPI, extension point allowing third parties to redefine
attribute reading and writing. Must be registered
in default
org.openide.util.Lookup .
It must generally deternime that they
support given entity key and attribute pair
and if so then perform action.
Two providers can theoreticaly clash and support
the same attribute for the same entity key. The
key point is that attribute meaning must be precisely
defined guaranteeing that two independent providers
respond with exactly same value hence making irrelevant
which one is actually choosen.
Providers should not cache results.
author: Petr Kuzel |
Inner Class :final public static class MemoryCache | |
readEntry | Object readEntry(Object key, String name, MemoryCache memoryCache)(Code) | | Reads given attribute for given fileobject. No method
parameter may be referenced after method execution finishes.
Parameters: key - identifies source entity, never null Parameters: name - identifies requested attribute, never null Parameters: memoryCache - can store speculative results attribute value or null if it does not exist. |
recognizesAttribute | boolean recognizesAttribute(String name)(Code) | | Reports if an attribute is supported by the implementation.
|
recognizesEntity | boolean recognizesEntity(Object key)(Code) | | Reports if the entity identified by key is supported by the implementation.
|
writeEntry | boolean writeEntry(Object key, String name, Object value)(Code) | | Writes given attribute. No method
parameter may be referenced after method execution finishes.
Parameters: key - identifies target entity, never null Parameters: name - identifies attribute, never null Parameters: value - actual attribute value that should be stored or null for removing it false on write failure if provider denies the value. On I/O error itreturns true . |
|
|