Package com.composum.nodes.debugutil
Class ResourceChangeLogger
- java.lang.Object
-
- com.composum.nodes.debugutil.ResourceChangeLogger
-
- All Implemented Interfaces:
org.apache.sling.api.resource.observation.ResourceChangeListener
public class ResourceChangeLogger extends Object implements org.apache.sling.api.resource.observation.ResourceChangeListener
Logs resource changes matching a given regex.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourceChangeLogger.Config
-
Field Summary
Fields Modifier and Type Field Description protected ResourceChangeLogger.Config
config
protected Pattern
regex
-
Constructor Summary
Constructors Constructor Description ResourceChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(ResourceChangeLogger.Config config)
protected void
deactivate()
void
onChange(List<org.apache.sling.api.resource.observation.ResourceChange> rawChanges)
-
-
-
Field Detail
-
regex
protected volatile Pattern regex
-
config
protected ResourceChangeLogger.Config config
-
-
Method Detail
-
onChange
public void onChange(List<org.apache.sling.api.resource.observation.ResourceChange> rawChanges)
- Specified by:
onChange
in interfaceorg.apache.sling.api.resource.observation.ResourceChangeListener
-
activate
protected void activate(ResourceChangeLogger.Config config)
-
deactivate
protected void deactivate()
-
-