public class Activator extends Object implements org.osgi.framework.BundleActivator, BundleTrackerCustomizer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Activator.BaseResolver<T> |
protected static class |
Activator.BaseService |
protected static class |
Activator.BundleComponentResolver |
protected static class |
Activator.BundleDataFormatResolver |
protected static class |
Activator.BundleLanguageResolver |
protected static class |
Activator.BundleMetaLanguageResolver |
protected static class |
Activator.BundleTypeConverterLoader |
| Modifier and Type | Field and Description |
|---|---|
static String |
CAMEL_EXTENDER |
static String |
EXTENDER_NAMESPACE |
static String |
META_INF_COMPONENT |
static String |
META_INF_DATAFORMAT |
static String |
META_INF_FALLBACK_TYPE_CONVERTER |
static String |
META_INF_LANGUAGE |
static String |
META_INF_LANGUAGE_RESOLVER |
static String |
META_INF_TYPE_CONVERTER |
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
A bundle is being added to the
BundleTracker. |
protected boolean |
canSee(org.osgi.framework.Bundle bundle,
Class<?> clazz)
Check if bundle can see the given class
|
protected static boolean |
checkCompat(org.osgi.framework.Bundle bundle,
Class<?> clazz)
Check if bundle can see the given class used by camel-test-blueprint
|
protected static Set<String> |
getConverterPackages(URL resource) |
protected static Properties |
loadProperties(URL url) |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
A bundle tracked by the
BundleTracker has been modified. |
protected void |
registerComponents(org.osgi.framework.Bundle bundle,
List<Activator.BaseService> resolvers) |
protected void |
registerDataFormats(org.osgi.framework.Bundle bundle,
List<Activator.BaseService> resolvers) |
protected void |
registerLanguages(org.osgi.framework.Bundle bundle,
List<Activator.BaseService> resolvers) |
protected void |
registerTypeConverterLoader(org.osgi.framework.Bundle bundle,
List<Activator.BaseService> resolvers) |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
A bundle tracked by the
BundleTracker has been removed. |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
public static final String META_INF_COMPONENT
public static final String META_INF_LANGUAGE
public static final String META_INF_LANGUAGE_RESOLVER
public static final String META_INF_DATAFORMAT
public static final String META_INF_TYPE_CONVERTER
public static final String META_INF_FALLBACK_TYPE_CONVERTER
public static final String EXTENDER_NAMESPACE
public static final String CAMEL_EXTENDER
public Activator()
public void start(org.osgi.framework.BundleContext context) throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext context) throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionpublic Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
BundleTrackerCustomizerBundleTracker.
This method is called before a bundle which matched the search parameters
of the BundleTracker is added to the
BundleTracker. This method should return the object to be
tracked for the specified Bundle. The returned object is
stored in the BundleTracker and is available from the
getObject method.
addingBundle in interface BundleTrackerCustomizerbundle - The Bundle being added to the
BundleTracker.event - The bundle event which caused this customizer method to be
called or null if there is no bundle event
associated with the call to this method.Bundle
object or null if the specified Bundle
object should not be tracked.public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
BundleTrackerCustomizerBundleTracker has been modified.
This method is called when a bundle being tracked by the
BundleTracker has had its state modified.
modifiedBundle in interface BundleTrackerCustomizerbundle - The Bundle whose state has been modified.event - The bundle event which caused this customizer method to be
called or null if there is no bundle event
associated with the call to this method.object - The tracked object for the specified bundle.public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
BundleTrackerCustomizerBundleTracker has been removed.
This method is called after a bundle is no longer being tracked by the
BundleTracker.
removedBundle in interface BundleTrackerCustomizerbundle - The Bundle that has been removed.event - The bundle event which caused this customizer method to be
called or null if there is no bundle event
associated with the call to this method.object - The tracked object for the specified bundle.protected void registerComponents(org.osgi.framework.Bundle bundle, List<Activator.BaseService> resolvers)
protected void registerLanguages(org.osgi.framework.Bundle bundle, List<Activator.BaseService> resolvers)
protected void registerDataFormats(org.osgi.framework.Bundle bundle, List<Activator.BaseService> resolvers)
protected void registerTypeConverterLoader(org.osgi.framework.Bundle bundle, List<Activator.BaseService> resolvers)
protected boolean canSee(org.osgi.framework.Bundle bundle, Class<?> clazz)
protected static boolean checkCompat(org.osgi.framework.Bundle bundle, Class<?> clazz)
protected static Properties loadProperties(URL url)
protected static Set<String> getConverterPackages(URL resource)
Apache Camel