Class AbstractNamespaceResolver
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.namespace.AbstractNamespaceResolver
-
- All Implemented Interfaces:
NamespaceResolver
public abstract class AbstractNamespaceResolver extends java.lang.Object implements NamespaceResolver
Deprecated.https://issues.apache.org/jira/browse/JCR-1700Provides default implementations for the methods: Subclasses may overwrite those methods with more efficient implementations e.g. using caching. This class also adds optional support forNamespaceListeners. To enable listener support call the constructor withsupportListenersset totrue. The default constructor will not enable listener support and all listener related methods will throw anUnsupportedOperationExceptionin that case.
-
-
Constructor Summary
Constructors Constructor Description AbstractNamespaceResolver()Deprecated.Creates aAbstractNamespaceResolverwithout listener support.AbstractNamespaceResolver(boolean supportListeners)Deprecated.Creates aAbstractNamespaceResolverwith listener support ifsupportListenersis set totrue.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(NamespaceListener listener)Deprecated.Registerslistenerto get notifications when namespace mappings change.voidremoveListener(NamespaceListener listener)Deprecated.Removes thelistenerfrom thisNamespaceRegistery.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
getPrefix, getURI
-
-
-
-
Constructor Detail
-
AbstractNamespaceResolver
public AbstractNamespaceResolver()
Deprecated.Creates aAbstractNamespaceResolverwithout listener support.
-
AbstractNamespaceResolver
public AbstractNamespaceResolver(boolean supportListeners)
Deprecated.Creates aAbstractNamespaceResolverwith listener support ifsupportListenersis set totrue.- Parameters:
supportListeners- iftruelistener are supported by this instance.
-
-
Method Detail
-
addListener
public void addListener(NamespaceListener listener)
Deprecated.Registerslistenerto get notifications when namespace mappings change.- Parameters:
listener- the listener to register.- Throws:
java.lang.UnsupportedOperationException- if listener support is not enabled for thisAbstractNamespaceResolver.
-
removeListener
public void removeListener(NamespaceListener listener)
Deprecated.Removes thelistenerfrom thisNamespaceRegistery.- Parameters:
listener- the listener to remove.- Throws:
java.lang.UnsupportedOperationException- if listener support is not enabled for thisAbstractNamespaceResolver.
-
-