Class AbstractNamespaceResolver

  • All Implemented Interfaces:
    NamespaceResolver

    public abstract class AbstractNamespaceResolver
    extends java.lang.Object
    implements 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 NamespaceListeners. 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 Detail

      • AbstractNamespaceResolver

        public AbstractNamespaceResolver()
        Deprecated.
        Creates a AbstractNamespaceResolver without listener support.
      • AbstractNamespaceResolver

        public AbstractNamespaceResolver​(boolean supportListeners)
        Deprecated.
        Creates a AbstractNamespaceResolver with listener support if supportListeners is set to true.
        Parameters:
        supportListeners - if true listener are supported by this instance.
    • Method Detail

      • addListener

        public void addListener​(NamespaceListener listener)
        Deprecated.
        Registers listener to get notifications when namespace mappings change.
        Parameters:
        listener - the listener to register.
        Throws:
        java.lang.UnsupportedOperationException - if listener support is not enabled for this AbstractNamespaceResolver.
      • removeListener

        public void removeListener​(NamespaceListener listener)
        Deprecated.
        Removes the listener from this NamespaceRegistery.
        Parameters:
        listener - the listener to remove.
        Throws:
        java.lang.UnsupportedOperationException - if listener support is not enabled for this AbstractNamespaceResolver.