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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBundledScriptTracker.BundledScriptTrackerConfig
-
Field Summary
Fields Modifier and Type Field Description static StringAT_EXTENDSstatic StringAT_SCRIPT_ENGINEstatic StringAT_SCRIPT_EXTENSIONstatic StringAT_VERSIONstatic StringNS_SLING_SERVLET
-
Constructor Summary
Constructors Constructor Description BundledScriptTracker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(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 voidbindSearchPathProvider(SearchPathProvider searchPathProvider)protected voiddeactivate()org.apache.felix.hc.api.Resultexecute()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 presentvoidmodifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs)voidremovedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>> regs)protected voidunbindSearchPathProvider(SearchPathProvider searchPathProvider)
-
-
-
Field Detail
-
NS_SLING_SERVLET
public static final String NS_SLING_SERVLET
- See Also:
- Constant Field Values
-
AT_VERSION
public static final String AT_VERSION
- See Also:
- Constant Field Values
-
AT_SCRIPT_ENGINE
public static final String AT_SCRIPT_ENGINE
- See Also:
- Constant Field Values
-
AT_SCRIPT_EXTENSION
public static final String AT_SCRIPT_EXTENSION
- See Also:
- Constant Field Values
-
AT_EXTENDS
public static final String AT_EXTENDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
addingBundlein 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:
modifiedBundlein 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:
removedBundlein interfaceorg.osgi.util.tracker.BundleTrackerCustomizer<List<org.osgi.framework.ServiceRegistration<javax.servlet.Servlet>>>
-
execute
public org.apache.felix.hc.api.Result execute()
- Specified by:
executein 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
-
-