public class DirContextURLStreamHandlerService
extends org.osgi.service.url.AbstractURLStreamHandlerService
implements org.osgi.framework.BundleActivator
DirContextURLStreamHandler
to OSGi service registry.
As much as we would have liked it to be both an activator as well as a Startup service, we can't.
In embedded mode, this Startup service would fail to load, so we have separated the startup servuce part to
WebNamingStartup class. That Startup service ensures that this bundle gets activated
during server startup and the activator ensures that we register a jndi protocol handler.| Constructor and Description |
|---|
DirContextURLStreamHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
URLConnection |
openConnection(URL u) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
String |
toExternalForm(URL u) |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURLopenConnection, parseURLpublic URLConnection openConnection(URL u) throws IOException
openConnection in interface org.osgi.service.url.URLStreamHandlerServiceopenConnection in class org.osgi.service.url.AbstractURLStreamHandlerServiceIOExceptionpublic String toExternalForm(URL u)
toExternalForm in interface org.osgi.service.url.URLStreamHandlerServicetoExternalForm in class org.osgi.service.url.AbstractURLStreamHandlerServicepublic void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionCopyright © 2019. All rights reserved.