org.odata4j.jersey.producer.resources
Class ODataProducerProvider
java.lang.Object
org.odata4j.producer.resources.DefaultODataProducerProvider
org.odata4j.jersey.producer.resources.ODataProducerProvider
- All Implemented Interfaces:
- ContextResolver<ODataProducer>
@Provider
public class ODataProducerProvider
- extends DefaultODataProducerProvider
Jersey-specific OData producer provider.
This provider allows specifying a factory as part of the container's deployment
descriptor (web.xml). The factory is used to create an OData producer instance.
<init-param>
<param-name>odata4j.producerfactory</param-name>
<param-value>... full qualified class name ...</param-value>
</init-param>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ODataProducerProvider
public ODataProducerProvider()
createInstanceFromFactoryInContainerSpecificSetting
protected ODataProducer createInstanceFromFactoryInContainerSpecificSetting()
- Description copied from class:
DefaultODataProducerProvider
- Creates an OData producer instance using a factory specified in a container-specific
setting.
The default implementation returns null
. Implementers can use the helper
methods newProducerFromFactory
and log
.
- Overrides:
createInstanceFromFactoryInContainerSpecificSetting
in class DefaultODataProducerProvider
- Returns:
- the OData producer or
null
if no container-specific setting exists
http://odata4j.org