Class BundledScriptTracker

java.lang.Object
org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker
All Implemented Interfaces:
org.apache.felix.hc.api.HealthCheck, org.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>

@Capability(namespace="osgi.extender", name="sling.scripting", version="1.0.0") public class BundledScriptTracker extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>, org.apache.felix.hc.api.HealthCheck
  • Field Details

  • Constructor Details

    • BundledScriptTracker

      public BundledScriptTracker()
  • Method Details

    • activate

      protected void activate(org.osgi.framework.BundleContext context, BundledScriptTracker.BundledScriptTrackerConfig config)
    • deactivate

      protected void deactivate()
    • bindSearchPathProvider

      protected void bindSearchPathProvider(SearchPathProvider searchPathProvider)
    • unbindSearchPathProvider

      protected void unbindSearchPathProvider(SearchPathProvider searchPathProvider)
    • addingBundle

      public List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
      Specified by:
      addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>
    • modifiedBundle

      public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs)
      Specified by:
      modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>
    • removedBundle

      public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs)
      Specified by:
      removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>
    • execute

      public org.apache.felix.hc.api.Result execute()
      Specified by:
      execute in interface org.apache.felix.hc.api.HealthCheck
    • filterForExistingBundles

      protected static Set<String> filterForExistingBundles(org.osgi.framework.BundleContext bundleContext, Set<String> expectedBundles)
      Return the symbolic names of bundles which are provided via {{code expectedBundles}} and present
      Parameters:
      bundleContext - a bundleContext
      expectedBundles - the symbolic names of bundles to check for
      Returns:
      the symbolic names of present bundles