Hi All,
the following code for onChange used to work in AEM 6.2 but after we migrated to 6.3 , I see onChange is not getting fired, not sure what is going wrong.
@Component(immediate = true)
@Service
@Properties(value = { @Property(name = ResourceChangeListener.PATHS, value = { CommunityConstants.CONTENT_ROOT_PATH }),
@Property(name = ResourceChangeListener.CHANGES, value = { "ADDED", "CHANGED" }, propertyPrivate = true) })
public class xyz implements ResourceChangeListener {
@Reference
private ResourceResolverFactory resourceResolverFactory;
@Reference
private ContentModelService contentModelService;
@Override
public void onChange(@Nonnull List<ResourceChange> changes) {
//some logic here
}
}
Please help me to understand it further.
Many Thanks,
Kranthi