public class LanguageExtension<T> extends KeyedExtensionCollector<T,Language>
myEpListenerAdded, myLock
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
LanguageExtension(ExtensionPointName<? extends KeyedLazyInstance<T>> epName) |
LanguageExtension(ExtensionPointName<? extends KeyedLazyInstance<T>> epName,
T defaultImplementation) |
LanguageExtension(java.lang.String epName) |
LanguageExtension(java.lang.String epName,
T defaultImplementation) |
Modifier and Type | Method and Description |
---|---|
void |
addExplicitExtension(Language key,
T t) |
java.util.List<T> |
allForLanguage(Language language) |
java.util.List<T> |
allForLanguageOrAny(Language l) |
protected java.util.List<T> |
buildExtensions(java.lang.String stringKey,
Language key) |
void |
clearCache(Language language) |
protected void |
ensureValuesLoaded() |
protected T |
findForLanguage(Language language) |
T |
forLanguage(Language l) |
protected T |
getDefaultImplementation() |
void |
invalidateCacheForExtension(java.lang.String key) |
protected java.lang.String |
keyToString(Language key) |
void |
removeExplicitExtension(Language key,
T t) |
addExplicitExtension, buildExtensions, buildExtensionsFromExplicitRegistration, clearCache, findSingle, forKey, getExtensions, getModificationCount, getName, getPoint, hasAnyExtensions
public LanguageExtension(ExtensionPointName<? extends KeyedLazyInstance<T>> epName)
public LanguageExtension(java.lang.String epName)
public LanguageExtension(ExtensionPointName<? extends KeyedLazyInstance<T>> epName, T defaultImplementation)
public LanguageExtension(java.lang.String epName, T defaultImplementation)
protected java.lang.String keyToString(Language key)
keyToString
in class KeyedExtensionCollector<T,Language>
public void clearCache(Language language)
public void invalidateCacheForExtension(java.lang.String key)
invalidateCacheForExtension
in class KeyedExtensionCollector<T,Language>
public java.util.List<T> allForLanguage(Language language)
allForLanguageOrAny(Language)
protected java.util.List<T> buildExtensions(java.lang.String stringKey, Language key)
buildExtensions
in class KeyedExtensionCollector<T,Language>
public void addExplicitExtension(Language key, T t)
addExplicitExtension
in class KeyedExtensionCollector<T,Language>
public void removeExplicitExtension(Language key, T t)
removeExplicitExtension
in class KeyedExtensionCollector<T,Language>
protected T getDefaultImplementation()
protected void ensureValuesLoaded()
ensureValuesLoaded
in class KeyedExtensionCollector<T,Language>