in src/main/java/org/apache/sling/adapter/internal/AdapterWebConsolePlugin.java [263:278]
protected void activate(final BundleContext ctx) throws InvalidSyntaxException {
this.bundleContext = ctx;
this.adapterServiceReferences = new HashMap<>();
this.adapterBundles = new HashMap<>();
for (final Bundle bundle : this.bundleContext.getBundles()) {
if (bundle.getState() == Bundle.ACTIVE) {
addBundle(bundle);
}
}
this.bundleContext.addBundleListener(this);
final Filter filter = this.bundleContext.createFilter(
"(&(adaptables=*)(adapters=*)(" + Constants.OBJECTCLASS + "=" + AdapterFactory.SERVICE_NAME + "))");
this.adapterTracker = new ServiceTracker(this.bundleContext, filter, this);
this.adapterTracker.open();
}