@ConsumerType
public interface ContextAwareService
If multiple implementations of an OSGi service interface or class exists the ContextAwareServiceResolver can
be used to picks the implementation with the best match for the current resource context/path in the resource
hierarchy.
This interface has no methods, the metadata for detecting the matching paths is published via the properties declared by the constants of this interface. The properties can be set as service properties or as bundle header. Service property is checked first, if it is not set there the bundle header of the bundle which registered the service is checked as fallback.
If multiple service implementations exist which match for a given resource path the one with the highest service ranking is picked.
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_ACCEPTS_CONTEXT_PATH_EMPTY
Accepts empty context paths.
|
static String |
PROPERTY_CONTEXT_PATH_BLACKLIST_PATTERN
Context path blacklist expression.
|
static String |
PROPERTY_CONTEXT_PATH_PATTERN
Context path whitelist expression.
|
static final String PROPERTY_CONTEXT_PATH_PATTERN
static final String PROPERTY_CONTEXT_PATH_BLACKLIST_PATTERN
static final String PROPERTY_ACCEPTS_CONTEXT_PATH_EMPTY
Copyright © 2014–2018 wcm.io. All rights reserved.