in src/main/java/org/apache/sling/installer/provider/installhook/OsgiInstallerListener.java [55:74]
public void onEvent(InstallationEvent installationEvent) {
if (installationEvent.getType() == TYPE.PROCESSED) {
Object sourceRaw = installationEvent.getSource();
if (!(sourceRaw instanceof TaskResource)) {
throw new IllegalStateException("Expected source of type " + TaskResource.class.getName());
}
TaskResource source = (TaskResource) sourceRaw;
String entityId = source.getEntityId();
String url = source.getURL();
LOG.debug("Received event about processed entityId={} url={}", entityId, url);
if (bundleUrlsToInstall.remove(url)) {
LOG.info("Received bundle installed event url={}", url);
}
if (configUrlsToInstall.remove(url)) {
LOG.info("Received config installed event url={}", url);
}
}
}