@Activate protected void activate(ComponentContext ctx) { BundleContext bundleContext = ctx.getBundleContext(); // this is less than ideal, but there's no better way to get to the fs classloader's data directory for (Bundle bundle : bundleContext.getBundles()) { if (bundle.getSymbolicName().equals("org.apache.sling.commons.fsclassloader")) { this.fileRoot = new File(slingSettingsService.getSlingHomePath(), "launchpad/felix/bundle"+bundle.getBundleId()+"/data/classes"); break; } } } }
@Activate protected void activate(ComponentContext ctx) { BundleContext bundleContext = ctx.getBundleContext(); // this is less than ideal, but there's no better way to get to the fs classloader's data directory for (Bundle bundle : bundleContext.getBundles()) { if (bundle.getSymbolicName().equals("org.apache.sling.commons.fsclassloader")) { this.fileRoot = new File(slingSettingsService.getSlingHomePath(), "launchpad/felix/bundle" + bundle.getBundleId() + "/data/classes"); break; } } } }
invalidateCurrentEstablishedView(); discoveryServiceImpl.handleTopologyChanging(); final String slingHomePath = slingSettingsService==null ? "n/a" : slingSettingsService.getSlingHomePath(); final String endpointsAsString = getEndpointsAsString(); final String readEndpoints = resourceMap.get(PROPERTY_ID_ENDPOINTS, String.class); resourceMap.put(PROPERTY_ID_RUNTIME, runtimeId); final String slingHomePath = slingSettingsService==null ? "n/a" : slingSettingsService.getSlingHomePath(); resourceMap.put(PROPERTY_ID_SLING_HOME_PATH, slingHomePath); final String endpointsAsString = getEndpointsAsString();