public class RegistryServiceFuncs extends Object
| Modifier and Type | Field and Description |
|---|---|
static Class |
THE_WELL_KNOWN_REG_DEFAULT_IMPL |
static Class |
THE_WELL_KNOWN_REG_DEFAULT_INTF |
| Constructor and Description |
|---|
RegistryServiceFuncs() |
| Modifier and Type | Method and Description |
|---|---|
static VerySimpleRegistry |
getTheWellKnownRegistry(Class osgiCredentialClaz)
Attempts to find OSGi bundle context, using OSG Framework.getBundle(RegistryServiceFuncs.class).
|
static VerySimpleRegistry |
getTheWellKnownRegistryUsingOptContext(org.osgi.framework.BundleContext bundleCtx)
Will use the bundleCtx, if it is not null.
|
static VerySimpleRegistry |
getTheWellKnownRegistryUsingReqContext(org.osgi.framework.BundleContext bundleCtx)
Use this when you are sure you should be in OSGi, and willing to bring us a bona-fide non-null bundleCtx.
|
static VerySimpleRegistry |
getTheWellKnownStaticRegistry()
Don't use in OSGi context, b/c you will probably wind up with two separate well known registries.
|
static VerySimpleRegistry |
lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx)
Requires OSGi context.
|
static <RT extends Registry> |
lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
Class<RT> rtClazz)
Requires OSGi context.
|
static <RT extends Registry> |
registerTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
Class<RT> regClazz,
RT wellKnownReg)
Requires OSGi context.
|
static org.osgi.framework.ServiceRegistration |
registerTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
VerySimpleRegistry wellKnownReg)
Requires OSGi context.
|
public static Class THE_WELL_KNOWN_REG_DEFAULT_INTF
public static Class THE_WELL_KNOWN_REG_DEFAULT_IMPL
public static <RT extends Registry> org.osgi.framework.ServiceRegistration registerTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx, Class<RT> regClazz, RT wellKnownReg)
RT - bundleCtx - regClazz - wellKnownReg - public static org.osgi.framework.ServiceRegistration registerTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
VerySimpleRegistry wellKnownReg)
bundleCtx - wellKnownReg - public static <RT extends Registry> RT lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx, Class<RT> rtClazz)
RT - bundleCtx - rtClazz - public static VerySimpleRegistry lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx)
public static VerySimpleRegistry getTheWellKnownRegistryUsingReqContext(org.osgi.framework.BundleContext bundleCtx)
bundleCtx - public static VerySimpleRegistry getTheWellKnownStaticRegistry()
public static VerySimpleRegistry getTheWellKnownRegistryUsingOptContext(org.osgi.framework.BundleContext bundleCtx)
bundleCtx - public static VerySimpleRegistry getTheWellKnownRegistry(Class osgiCredentialClaz)
Copyright © 2010-2015. All Rights Reserved.