public class ModelPackageBundleListener extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.ServiceRegistration[]>
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ALLOWED_IN_PRIVATE
Service registration property letting the Adapter Manager the adapter is OK to be in a private package
|
Constructor and Description |
---|
ModelPackageBundleListener(org.osgi.framework.BundleContext bundleContext,
ModelAdapterFactory factory,
org.apache.sling.models.impl.AdapterImplementations adapterImplementations,
org.apache.sling.scripting.api.BindingsValuesProvidersByContext bindingsValuesProvidersByContext,
org.apache.sling.models.impl.SlingModelsScriptEngineFactory scriptEngineFactory) |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.ServiceRegistration[] |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event) |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
org.osgi.framework.ServiceRegistration[] object) |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
org.osgi.framework.ServiceRegistration[] object) |
void |
unregisterAll() |
public static final String PROP_ALLOWED_IN_PRIVATE
public ModelPackageBundleListener(org.osgi.framework.BundleContext bundleContext, ModelAdapterFactory factory, org.apache.sling.models.impl.AdapterImplementations adapterImplementations, org.apache.sling.scripting.api.BindingsValuesProvidersByContext bindingsValuesProvidersByContext, org.apache.sling.models.impl.SlingModelsScriptEngineFactory scriptEngineFactory)
public org.osgi.framework.ServiceRegistration[] addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
addingBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.ServiceRegistration[]>
public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.ServiceRegistration[] object)
modifiedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.ServiceRegistration[]>
public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.ServiceRegistration[] object)
removedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.ServiceRegistration[]>
public void unregisterAll()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.