Class BasicObserverConfiguration
java.lang.Object
org.apache.sling.resourceresolver.impl.observation.BasicObserverConfiguration
- All Implemented Interfaces:
org.apache.sling.spi.resource.provider.ObserverConfiguration
public class BasicObserverConfiguration
extends Object
implements org.apache.sling.spi.resource.provider.ObserverConfiguration
Implementation of a
ObserverConfiguration-
Constructor Summary
ConstructorsConstructorDescriptionBasicObserverConfiguration(org.apache.sling.api.resource.path.PathSet set) BasicObserverConfiguration(org.apache.sling.api.resource.path.PathSet paths, Set<org.apache.sling.api.resource.observation.ResourceChange.ChangeType> types, boolean isExternal, org.apache.sling.api.resource.path.PathSet excludePaths, Set<String> propertyNamesHint) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ResourceChangeListenerInfo listener) Add a listenerbooleanSet<org.apache.sling.api.resource.observation.ResourceChange.ChangeType>org.apache.sling.api.resource.path.PathSetAll listeners associated with this configurationorg.apache.sling.api.resource.path.PathSetgetPaths()inthashCode()booleanbooleantoString()
-
Constructor Details
-
BasicObserverConfiguration
-
BasicObserverConfiguration
public BasicObserverConfiguration(org.apache.sling.api.resource.path.PathSet set)
-
-
Method Details
-
addListener
Add a listener- Parameters:
listener- The listener
-
getListeners
All listeners associated with this configuration- Returns:
- List of listeners, might be empty
-
includeExternal
public boolean includeExternal()- Specified by:
includeExternalin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
getPaths
public org.apache.sling.api.resource.path.PathSet getPaths()- Specified by:
getPathsin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
getExcludedPaths
public org.apache.sling.api.resource.path.PathSet getExcludedPaths()- Specified by:
getExcludedPathsin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
getChangeTypes
- Specified by:
getChangeTypesin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
matches
- Specified by:
matchesin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
getPropertyNamesHint
- Specified by:
getPropertyNamesHintin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
hashCode
public int hashCode() -
equals
-
toString
-