public abstract class ODataServiceFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_FORM_ENCODING
Label used in web.xml to assign servlet init parameter for a accept form encoding.
|
static String |
FACTORY_CLASSLOADER_LABEL
Label used in core to access application class loader
|
static String |
FACTORY_INSTANCE_LABEL
Label used in web.xml to assign servlet init parameter to factory class instance.
|
static String |
FACTORY_LABEL
Label used in web.xml to assign servlet init parameter to factory class instance.
|
static String |
PATH_SPLIT_LABEL
Label used in web.xml to assign servlet init parameter for a path split (service resolution).
|
Constructor and Description |
---|
ODataServiceFactory() |
Modifier and Type | Method and Description |
---|---|
ODataService |
createODataSingleProcessorService(EdmProvider provider,
ODataSingleProcessor processor)
Create a default service instance based on ODataSingleProcessor
. |
abstract ODataService |
createService(ODataContext ctx)
Create instance of custom
ODataService . |
<T extends ODataCallback> |
getCallback(Class<T> callbackInterface)
A service can return implementation classes for various callback interfaces.
|
public static final String FACTORY_LABEL
public static final String FACTORY_CLASSLOADER_LABEL
public static final String FACTORY_INSTANCE_LABEL
public static final String PATH_SPLIT_LABEL
public static final String ACCEPT_FORM_ENCODING
public abstract ODataService createService(ODataContext ctx) throws ODataException
ODataService
.ctx
- OData context objectODataException
- in case of errorpublic ODataService createODataSingleProcessorService(EdmProvider provider, ODataSingleProcessor processor)
.
provider
- A custom EdmProvider
implementation.processor
- A custom processor implementation derived from ODataSingleProcessor
.ODataSingleProcessorService
instance.public <T extends ODataCallback> T getCallback(Class<T> callbackInterface)
callbackInterface
- a interface type to query for implementationCopyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.