com.fasterxml.jackson.annotation.JacksonInject in the constructor parameters or the class members ask for injecting a matching OSGI services.
Use the com.fasterxml.jackson.annotation.JacksonInject#value() to specify an OSGI filter to select more accurately the OSGI services.
Null is injected when no matching OSGI service is registered.
| Modifier and Type | Field and Description |
|---|---|
| private final BundleContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | findInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional, Boolean useInput)
Implements abstract tools. Method called to find value identified by id |
| private Object | |
| private String | |
| private static String | |
| public InjectableValues | snapshot()
Implements tools. Method to call to get an instance that may not be modified through any other object, including `this`. |
| bundleContext | back to summary |
|---|---|
| private final BundleContext bundleContext | |
| OsgiInjectableValues | back to summary |
|---|---|
| public OsgiInjectableValues(BundleContext bundleContext) | |
| findInjectableValue | back to summary |
|---|---|
| public Object findInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional, Boolean useInput) Implements abstract tools. Doc from tools. Method called to find value identified by id
| |
| findService | back to summary |
|---|---|
| private Object findService(String type, String filter) | |
| serviceFilter | back to summary |
|---|---|
| private String serviceFilter(Object valueId) | |
| serviceType | back to summary |
|---|---|
| private static String serviceType(BeanProperty forProperty) | |
| snapshot | back to summary |
|---|---|
| public InjectableValues snapshot() Implements tools. Doc from tools. Method to call to get an instance that may not be modified through any other object, including `this`. That instance may be `this` if (and only if) this instance is effectively immutable (unmodifiable) through its API: if this is not the case, a new copy with same configuration must be created and returned.
| |