Package org.ops4j.pax.url.mvn.internal
Class Activator
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.osgi.service.url.AbstractURLStreamHandlerService
-
- org.ops4j.pax.url.mvn.internal.Activator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator,org.osgi.service.url.URLStreamHandlerService
public class Activator extends org.osgi.service.url.AbstractURLStreamHandlerService implements org.osgi.framework.BundleActivatorBundle activator for protocol handlers.
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLConnectionopenConnection(URL url)voidstart(org.osgi.framework.BundleContext bundleContext)Registers Handler as a wrap: protocol stream handler service and as a configuration managed service if possible.voidstop(org.osgi.framework.BundleContext bundleContext)Performs cleanup:
* Unregister handler;
* Unregister managed service;
* Release bundle context.voidupdated(Dictionary<String,?> config)-
Methods inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
-
Methods inherited from class java.net.URLStreamHandler
openConnection, parseURL
-
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext bundleContext)
Registers Handler as a wrap: protocol stream handler service and as a configuration managed service if possible.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Parameters:
bundleContext- the bundle context.- See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
-
stop
public void stop(org.osgi.framework.BundleContext bundleContext)
Performs cleanup:
* Unregister handler;
* Unregister managed service;
* Release bundle context.- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
-
updated
public void updated(Dictionary<String,?> config)
-
openConnection
public URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnectionin interfaceorg.osgi.service.url.URLStreamHandlerService- Specified by:
openConnectionin classorg.osgi.service.url.AbstractURLStreamHandlerService- Throws:
IOException
-
-