public class Activator extends Object implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener, FactoryFinder.ObjectFactory
FactoryFinder
to the OSGi environment.| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
Object |
create(String path) |
protected void |
register(org.osgi.framework.Bundle bundle) |
void |
start(org.osgi.framework.BundleContext bundleContext) |
void |
stop(org.osgi.framework.BundleContext bundleContext) |
protected void |
unregister(long bundleId)
When bundles unload..
|
public Activator()
public void start(org.osgi.framework.BundleContext bundleContext) throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext bundleContext) throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerprotected void register(org.osgi.framework.Bundle bundle)
protected void unregister(long bundleId)
bundleId - public Object create(String path) throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException
create in interface FactoryFinder.ObjectFactorypath - the full service pathIllegalAccessExceptionInstantiationExceptionIOExceptionClassNotFoundExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.