public interface ApiResourceProviderFactory
ApiResourceProviderFactory
defines the service interface to get
and create ApiResourceProviders
's dynamically on a per usage base.
Implementations of this interface must be defined as OSGi services and define
a service registration property
PROVIDER_TYPE
. The
ApiResourceProviderFactory
will be selected by the value returned by
getContextPath()
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROVIDER_TYPE
The name of the service registration property containing the API type
this provider is registered with (value is "provider.type").
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextPath()
Returns the context path of the ApiResourceProviderFactory under which
the
ApiResourceProvider will be responsible to return
resources . |
ApiResourceProvider |
getResourceProvider(java.lang.String rootContextPath)
Returns a new
ApiResourceProvider instance. |
static final java.lang.String PROVIDER_TYPE
java.lang.String getContextPath()
ApiResourceProvider
will be responsible to return
resources
.ApiResourceProvider getResourceProvider(java.lang.String rootContextPath)
ApiResourceProvider
instance.rootContextPath
- The root context path of the default API servlet.
By default the value is /api
.ApiResourceProvider
."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"