@Service public class ResourceToModelAdapterUpdater extends Object implements org.eclipse.gemini.blueprint.context.BundleContextAware
AdapterFactory provides the type(s) it adapts from
and the types it can adapt to as OSGi service
properties. This information is used by Adaptable types to
adapt to
other types, i.e. is essentially a factory pattern.
ResourceToModelAdapter as
an AdapterFactory OSGi service and dynamically updates the before mentioned
service properties with regard to the resource models detected by the
ModelRegistrar.
This enables direct adaptation to the resource
models without having to provide all available models as service metadata at build time.| Constructor and Description |
|---|
ResourceToModelAdapterUpdater() |
| Modifier and Type | Method and Description |
|---|---|
void |
refresh() |
void |
registerModelAdapter()
Registers
the ResourceToModelAdapter, i.e. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
@Async(value="singlethreaded") public void refresh()
@PostConstruct public void registerModelAdapter()
Registers
the ResourceToModelAdapter, i.e. publishes it as an OSGi service.public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAwareCopyright © 2014–2015. All rights reserved.