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 aObserverConfiguration
-
-
Constructor Summary
Constructors Constructor Description BasicObserverConfiguration(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ResourceChangeListenerInfo listener)Add a listenerbooleanequals(Object obj)Set<org.apache.sling.api.resource.observation.ResourceChange.ChangeType>getChangeTypes()org.apache.sling.api.resource.path.PathSetgetExcludedPaths()List<ResourceChangeListenerInfo>getListeners()All listeners associated with this configurationorg.apache.sling.api.resource.path.PathSetgetPaths()Set<String>getPropertyNamesHint()inthashCode()booleanincludeExternal()booleanmatches(String path)StringtoString()
-
-
-
Constructor Detail
-
BasicObserverConfiguration
public 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)
-
BasicObserverConfiguration
public BasicObserverConfiguration(org.apache.sling.api.resource.path.PathSet set)
-
-
Method Detail
-
addListener
public void addListener(ResourceChangeListenerInfo listener)
Add a listener- Parameters:
listener- The listener
-
getListeners
public List<ResourceChangeListenerInfo> 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
public Set<org.apache.sling.api.resource.observation.ResourceChange.ChangeType> getChangeTypes()
- Specified by:
getChangeTypesin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
matches
public boolean matches(String path)
- Specified by:
matchesin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
getPropertyNamesHint
public Set<String> getPropertyNamesHint()
- Specified by:
getPropertyNamesHintin interfaceorg.apache.sling.spi.resource.provider.ObserverConfiguration
-
-