| Package | Description |
|---|---|
| org.appdapter.api.facade | |
| org.appdapter.osgi.registry |
Utility methods for using the OSGi service facilities to register and look
up an Appdapter registry.
|
| org.appdapter.registry.basic |
The "Basic" Registry system provides a simple implementation of the
Registry interfaces and concepts.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FacadeRegistry |
| Modifier and Type | Method and Description |
|---|---|
static <SubRegType extends VerySimpleRegistry> |
SubsystemRegistryFuncs.findOrMakeSubsystemRegistry(VerySimpleRegistry rootReg,
Class<SubRegType> subRegClaz,
String subRegName)
Assumes that subRegClaz has a no-args constructor().
|
| Modifier and Type | Method and Description |
|---|---|
static FacadeRegistry |
SubsystemRegistryFuncs.findOrMakeSubsystemFacadeRegistry(VerySimpleRegistry rootReg,
String subsysRegName) |
static <SubRegType extends VerySimpleRegistry> |
SubsystemRegistryFuncs.findOrMakeSubsystemRegistry(VerySimpleRegistry rootReg,
Class<SubRegType> subRegClaz,
String subRegName)
Assumes that subRegClaz has a no-args constructor().
|
static <OT> OT |
MakableObjectHelpFuncs.findOrMakeUniqueNamedObject(VerySimpleRegistry vsr,
Class<OT> objClaz,
String objName,
Maker<OT> maker)
Used to find or flexibly construct an object that is to be placed in a registry.
|
static <OT> OT |
MakableObjectHelpFuncs.findOrMakeUniqueNamedObjectWithDefCons(VerySimpleRegistry vsr,
Class<OT> objClaz,
String objName)
Further simplified "findOrMake" method, with longer name! Uses objClaz.newInstance() as the maker.
|
| Modifier and Type | Method and Description |
|---|---|
static VerySimpleRegistry |
RegistryServiceFuncs.getTheWellKnownRegistry(Class osgiCredentialClaz)
Attempts to find OSGi bundle context, using OSG Framework.getBundle(RegistryServiceFuncs.class).
|
static VerySimpleRegistry |
RegistryServiceFuncs.getTheWellKnownRegistryUsingOptContext(org.osgi.framework.BundleContext bundleCtx)
Will use the bundleCtx, if it is not null.
|
static VerySimpleRegistry |
RegistryServiceFuncs.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 |
RegistryServiceFuncs.getTheWellKnownStaticRegistry()
Don't use in OSGi context, b/c you will probably wind up with two separate well known registries.
|
static VerySimpleRegistry |
RegistryServiceFuncs.lookupTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx)
Requires OSGi context.
|
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.ServiceRegistration |
RegistryServiceFuncs.registerTheWellKnownRegistry(org.osgi.framework.BundleContext bundleCtx,
VerySimpleRegistry wellKnownReg)
Requires OSGi context.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicRegistry |
Copyright © 2010-2015. All Rights Reserved.