org.xwiki.extension.event
Class AbstractExtensionEvent
java.lang.Object
org.xwiki.extension.event.AbstractExtensionEvent
- All Implemented Interfaces:
- ExtensionEvent, Event
- Direct Known Subclasses:
- ExtensionInstalledEvent, ExtensionUninstalledEvent, ExtensionUpgradedEvent
public abstract class AbstractExtensionEvent
- extends Object
- implements ExtensionEvent
Base class for all ExtensionEvent.
- Since:
- 4.0M1
- Version:
- $Id: 704af8e9489c54a9b84db10f7751d9128de60184 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getExtensionId
public ExtensionId getExtensionId()
- Specified by:
getExtensionId in interface ExtensionEvent
- Returns:
- the event related extension identifier
getNamespace
public String getNamespace()
- Specified by:
getNamespace in interface ExtensionEvent
- Returns:
- the namespace on which the event happened, null mean root namespace
hasNamespace
public boolean hasNamespace()
- Specified by:
hasNamespace in interface ExtensionEvent
- Returns:
- indicate of the namespace has been set in this event
matches
public boolean matches(Object event)
- Specified by:
matches in interface Event
Copyright © 2004-2013 XWiki. All Rights Reserved.