public abstract class BaseActivator extends Object implements org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
static BaseActivator |
activator |
Constructor and Description |
---|
BaseActivator() |
Modifier and Type | Method and Description |
---|---|
void |
addConsumerWeavingData(org.osgi.framework.Bundle bundle,
String consumerHeaderName) |
Collection<org.osgi.framework.Bundle> |
findConsumerRestrictions(org.osgi.framework.Bundle consumer,
String className,
String methodName,
Map<Pair<Integer,String>,String> args) |
Collection<org.osgi.framework.Bundle> |
findProviderBundles(String name) |
Optional<aQute.bnd.header.Parameters> |
getAutoConsumerInstructions() |
Optional<aQute.bnd.header.Parameters> |
getAutoProviderInstructions() |
Map<String,Object> |
getCustomBundleAttributes(String name,
org.osgi.framework.Bundle b) |
Set<WeavingData> |
getWeavingData(org.osgi.framework.Bundle b) |
boolean |
isLogEnabled(Level level) |
void |
log(int level,
String message) |
void |
log(int level,
String message,
Throwable th) |
void |
log(Level level,
String message) |
void |
log(Level level,
String message,
Throwable th) |
void |
registerConsumerBundle(org.osgi.framework.Bundle consumerBundle,
Set<ConsumerRestriction> restrictions,
List<org.apache.aries.spifly.BundleDescriptor> allowedBundles) |
void |
registerProviderBundle(String registrationClassName,
org.osgi.framework.Bundle bundle,
Map<String,Object> customAttributes) |
void |
removeWeavingData(org.osgi.framework.Bundle bundle) |
void |
setAutoConsumerInstructions(Optional<aQute.bnd.header.Parameters> autoConsumerInstructions) |
void |
setAutoProviderInstructions(Optional<aQute.bnd.header.Parameters> autoProviderInstructions) |
void |
start(org.osgi.framework.BundleContext context,
String consumerHeaderName) |
void |
stop(org.osgi.framework.BundleContext context) |
void |
unregisterProviderBundle(org.osgi.framework.Bundle bundle) |
public static BaseActivator activator
public void start(org.osgi.framework.BundleContext context, String consumerHeaderName) throws Exception
Exception
public void addConsumerWeavingData(org.osgi.framework.Bundle bundle, String consumerHeaderName) throws Exception
Exception
public void removeWeavingData(org.osgi.framework.Bundle bundle)
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
Exception
public boolean isLogEnabled(Level level)
public void log(int level, String message)
public Set<WeavingData> getWeavingData(org.osgi.framework.Bundle b)
public void registerProviderBundle(String registrationClassName, org.osgi.framework.Bundle bundle, Map<String,Object> customAttributes)
public void unregisterProviderBundle(org.osgi.framework.Bundle bundle)
public Collection<org.osgi.framework.Bundle> findProviderBundles(String name)
public Map<String,Object> getCustomBundleAttributes(String name, org.osgi.framework.Bundle b)
public void registerConsumerBundle(org.osgi.framework.Bundle consumerBundle, Set<ConsumerRestriction> restrictions, List<org.apache.aries.spifly.BundleDescriptor> allowedBundles)
public Collection<org.osgi.framework.Bundle> findConsumerRestrictions(org.osgi.framework.Bundle consumer, String className, String methodName, Map<Pair<Integer,String>,String> args)
public Optional<aQute.bnd.header.Parameters> getAutoConsumerInstructions()
public void setAutoConsumerInstructions(Optional<aQute.bnd.header.Parameters> autoConsumerInstructions)
public Optional<aQute.bnd.header.Parameters> getAutoProviderInstructions()
public void setAutoProviderInstructions(Optional<aQute.bnd.header.Parameters> autoProviderInstructions)
Copyright © 2021 The Apache Software Foundation. All rights reserved.