Package org.xwiki.extension.event
Class AbstractExtensionEvent
- java.lang.Object
-
- org.xwiki.extension.event.AbstractExtensionEvent
-
- All Implemented Interfaces:
ExtensionEvent
,Event
- Direct Known Subclasses:
ExtensionInitializedEvent
,ExtensionInstalledEvent
,ExtensionInstallFailedEvent
,ExtensionInstallingEvent
,ExtensionUninstalledEvent
,ExtensionUninstallFailedEvent
,ExtensionUninstallingEvent
,ExtensionUpgradedEvent
,ExtensionUpgradeFailedEvent
,ExtensionUpgradingEvent
public abstract class AbstractExtensionEvent extends Object implements ExtensionEvent
Base class for allExtensionEvent
.- Since:
- 4.0M1
- Version:
- $Id: 047fbcb6d77e4c49972ca73bacf9026a750a420d $
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractExtensionEvent()
Default constructor.protected
AbstractExtensionEvent(ExtensionId extensionId)
protected
AbstractExtensionEvent(ExtensionId extensionId, String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionId
getExtensionId()
String
getNamespace()
boolean
hasNamespace()
boolean
matches(Object event)
-
-
-
Constructor Detail
-
AbstractExtensionEvent
public AbstractExtensionEvent()
Default constructor.
-
AbstractExtensionEvent
protected AbstractExtensionEvent(ExtensionId extensionId, String namespace)
- Parameters:
extensionId
- the event related extension identifiernamespace
- the namespace on which the event happened
-
AbstractExtensionEvent
protected AbstractExtensionEvent(ExtensionId extensionId)
- Parameters:
extensionId
- the event related extension identifier- Since:
- 9.0RC1, 8.4.1, 7.4.6
-
-
Method Detail
-
getExtensionId
public ExtensionId getExtensionId()
- Specified by:
getExtensionId
in interfaceExtensionEvent
- Returns:
- the event related extension identifier
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceExtensionEvent
- Returns:
- the namespace on which the event happened, null mean root namespace
-
hasNamespace
public boolean hasNamespace()
- Specified by:
hasNamespace
in interfaceExtensionEvent
- Returns:
- indicate of the namespace has been set in this event
-
-