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>>>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.felix.hc.api.HealthCheck
ASYNC_CRON_EXPRESSION, ASYNC_INTERVAL_IN_SEC, KEEP_NON_OK_RESULTS_STICKY_FOR_SEC, MBEAN_NAME, NAME, RESULT_CACHE_TTL_IN_MS, TAGS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(org.osgi.framework.BundleContext context, BundledScriptTracker.BundledScriptTrackerConfig config) List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>
addingBundle
(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event) protected void
bindSearchPathProvider
(SearchPathProvider searchPathProvider) protected void
org.apache.felix.hc.api.Result
execute()
filterForExistingBundles
(org.osgi.framework.BundleContext bundleContext, Set<String> expectedBundles) Return the symbolic names of bundles which are provided via {{code expectedBundles}} and presentvoid
modifiedBundle
(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs) void
removedBundle
(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs) protected void
unbindSearchPathProvider
(SearchPathProvider searchPathProvider)
-
Field Details
-
NS_SLING_SERVLET
- See Also:
-
AT_VERSION
- See Also:
-
AT_SCRIPT_ENGINE
- See Also:
-
AT_SCRIPT_EXTENSION
- See Also:
-
AT_EXTENDS
- See Also:
-
-
Constructor Details
-
BundledScriptTracker
public BundledScriptTracker()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext context, BundledScriptTracker.BundledScriptTrackerConfig config) -
deactivate
protected void deactivate() -
bindSearchPathProvider
-
unbindSearchPathProvider
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 bundleContextexpectedBundles
- the symbolic names of bundles to check for- Returns:
- the symbolic names of present bundles
-