public final class ExtensionsAreaImpl extends java.lang.Object implements ExtensionsArea
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_AREA |
Constructor and Description |
---|
ExtensionsAreaImpl(ComponentManager componentManager) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractPointName(Element extensionElement,
java.lang.String ns) |
<T> T |
findExtensionByClass(java.lang.Class<T> aClass) |
<T> ExtensionPoint<T> |
getExtensionPoint(ExtensionPointName<T> extensionPointName) |
<T> ExtensionPointImpl<T> |
getExtensionPoint(java.lang.String extensionPointName) |
<T> ExtensionPoint<T> |
getExtensionPointIfRegistered(java.lang.String extensionPointName) |
ExtensionPointImpl<?> [] |
getExtensionPoints() |
boolean |
hasExtensionPoint(ExtensionPointName<?> extensionPointName) |
boolean |
hasExtensionPoint(java.lang.String extensionPointName) |
void |
notifyAreaReplaced(ExtensionsAreaImpl newArea) |
void |
registerExtension(ExtensionPoint<?> extensionPoint,
PluginDescriptor pluginDescriptor,
Element extensionElement) |
void |
registerExtension(PluginDescriptor pluginDescriptor,
Element extensionElement,
java.lang.String extensionNs)
Registers a new extension.
|
void |
registerExtensionPoint(BaseExtensionPointName<?> extensionPoint,
java.lang.String extensionPointBeanClass,
ExtensionPoint.Kind kind,
Disposable parentDisposable) |
void |
registerExtensionPoint(java.lang.String extensionPointName,
java.lang.String extensionPointBeanClass,
ExtensionPoint.Kind kind) |
void |
registerExtensionPoints(java.util.List<? extends ExtensionPointImpl<?>> points,
boolean clonePoint) |
void |
registerExtensionPoints(PluginDescriptor pluginDescriptor,
java.util.List<? extends Element> extensionPointElements) |
boolean |
registerExtensions(java.lang.String pointName,
java.util.List<? extends Element> extensions,
IdeaPluginDescriptor pluginDescriptor,
ComponentManager componentManager,
java.util.List<java.lang.Runnable> listenerCallbacks) |
<T> ExtensionPointImpl<T> |
registerFakeBeanPoint(java.lang.String name,
PluginDescriptor pluginDescriptor)
To register extensions for
KeyedExtensionCollector for test purposes, where extension instance can be KeyedLazyInstance and not a real bean class,
because often it is not possible to use one (for example, LanguageExtensionPoint ). |
<T> ExtensionPointImpl<T> |
registerPoint(java.lang.String name,
java.lang.Class<T> extensionClass,
PluginDescriptor pluginDescriptor) |
java.lang.String |
toString() |
void |
unregisterExtensionPoint(java.lang.String extensionPointName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
registerExtensionPoint
public static final java.lang.String ATTRIBUTE_AREA
public ExtensionsAreaImpl(ComponentManager componentManager)
public final void notifyAreaReplaced(ExtensionsAreaImpl newArea)
public void registerExtensionPoints(PluginDescriptor pluginDescriptor, java.util.List<? extends Element> extensionPointElements)
public void registerExtension(PluginDescriptor pluginDescriptor, Element extensionElement, java.lang.String extensionNs)
ExtensionsArea
registerExtension
in interface ExtensionsArea
pluginDescriptor
- plugin to which extension belongsextensionElement
- element from plugin.xml file where extension settings are specifiedextensionNs
- extension namespace which is prepended to the tag name from extensionElement
to form the qualified extension name.public void registerExtension(ExtensionPoint<?> extensionPoint, PluginDescriptor pluginDescriptor, Element extensionElement)
registerExtension
in interface ExtensionsArea
public static java.lang.String extractPointName(Element extensionElement, java.lang.String ns)
public void registerExtensionPoint(java.lang.String extensionPointName, java.lang.String extensionPointBeanClass, ExtensionPoint.Kind kind)
registerExtensionPoint
in interface ExtensionsArea
public void registerExtensionPoint(BaseExtensionPointName<?> extensionPoint, java.lang.String extensionPointBeanClass, ExtensionPoint.Kind kind, Disposable parentDisposable)
public <T> ExtensionPointImpl<T> registerPoint(java.lang.String name, java.lang.Class<T> extensionClass, PluginDescriptor pluginDescriptor)
public <T> ExtensionPointImpl<T> registerFakeBeanPoint(java.lang.String name, PluginDescriptor pluginDescriptor)
KeyedExtensionCollector
for test purposes, where extension instance can be KeyedLazyInstance and not a real bean class,
because often it is not possible to use one (for example, LanguageExtensionPoint
).public void registerExtensionPoints(java.util.List<? extends ExtensionPointImpl<?>> points, boolean clonePoint)
public <T> ExtensionPointImpl<T> getExtensionPoint(java.lang.String extensionPointName)
getExtensionPoint
in interface ExtensionsArea
public boolean registerExtensions(java.lang.String pointName, java.util.List<? extends Element> extensions, IdeaPluginDescriptor pluginDescriptor, ComponentManager componentManager, java.util.List<java.lang.Runnable> listenerCallbacks)
public <T> ExtensionPoint<T> getExtensionPointIfRegistered(java.lang.String extensionPointName)
getExtensionPointIfRegistered
in interface ExtensionsArea
public <T> ExtensionPoint<T> getExtensionPoint(ExtensionPointName<T> extensionPointName)
getExtensionPoint
in interface ExtensionsArea
public ExtensionPointImpl<?> [] getExtensionPoints()
getExtensionPoints
in interface ExtensionsArea
public <T> T findExtensionByClass(java.lang.Class<T> aClass)
public void unregisterExtensionPoint(java.lang.String extensionPointName)
unregisterExtensionPoint
in interface ExtensionsArea
public boolean hasExtensionPoint(java.lang.String extensionPointName)
hasExtensionPoint
in interface ExtensionsArea
public boolean hasExtensionPoint(ExtensionPointName<?> extensionPointName)
hasExtensionPoint
in interface ExtensionsArea
public java.lang.String toString()
toString
in class java.lang.Object