|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appdapter.osgi.registry.RegistryServiceFuncs
public class RegistryServiceFuncs
Can work with or without OSGi. To use (possibly) outside of OSGi, use getTheWellKnownRegistry() (flexible, will try OSGi lookup first), or, to be extra something, you could call getTheWellKnownStaticRegistry(), but that will cause trouble if you really are in OSGi.
| Field Summary | |
|---|---|
static Class |
THE_WELL_KNOWN_REG_DEFAULT_IMPL
|
static Class |
THE_WELL_KNOWN_REG_DEFAULT_INTF
|
| Constructor Summary | |
|---|---|
RegistryServiceFuncs()
|
|
| Method Summary | ||
|---|---|---|
static VerySimpleRegistry |
getTheWellKnownRegistry()
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 bundleCtx should not be null. |
|
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
|
lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
Class<RT> rtClazz)
Requires OSGi context. |
|
static
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Class THE_WELL_KNOWN_REG_DEFAULT_INTF
public static Class THE_WELL_KNOWN_REG_DEFAULT_IMPL
| Constructor Detail |
|---|
public RegistryServiceFuncs()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||