Class AbstractNamespaceResolver
java.lang.Object
org.apache.jackrabbit.spi.commons.namespace.AbstractNamespaceResolver
- All Implemented Interfaces:
NamespaceResolver
Deprecated.
https://issues.apache.org/jira/browse/JCR-1700
Provides default implementations for the methods:
Subclasses may overwrite those methods with more efficient implementations
e.g. using caching. This class also adds optional support for
NamespaceListener
s. To enable listener support call the constructor
with supportListeners
set to true
. The default
constructor will not enable listener support and all listener related
methods will throw an UnsupportedOperationException
in that case.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates aAbstractNamespaceResolver
without listener support.AbstractNamespaceResolver
(boolean supportListeners) Deprecated.Creates aAbstractNamespaceResolver
with listener support ifsupportListeners
is set totrue
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(NamespaceListener listener) Deprecated.Registerslistener
to get notifications when namespace mappings change.void
removeListener
(NamespaceListener listener) Deprecated.Removes thelistener
from 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 Details
-
AbstractNamespaceResolver
public AbstractNamespaceResolver()Deprecated.Creates aAbstractNamespaceResolver
without listener support. -
AbstractNamespaceResolver
public AbstractNamespaceResolver(boolean supportListeners) Deprecated.Creates aAbstractNamespaceResolver
with listener support ifsupportListeners
is set totrue
.- Parameters:
supportListeners
- iftrue
listener are supported by this instance.
-
-
Method Details
-
addListener
Deprecated.Registerslistener
to get notifications when namespace mappings change.- Parameters:
listener
- the listener to register.- Throws:
UnsupportedOperationException
- if listener support is not enabled for thisAbstractNamespaceResolver
.
-
removeListener
Deprecated.Removes thelistener
from thisNamespaceRegistery
.- Parameters:
listener
- the listener to remove.- Throws:
UnsupportedOperationException
- if listener support is not enabled for thisAbstractNamespaceResolver
.
-