org.odata4j.jersey.producer.resources
Class ODataProducerProvider

java.lang.Object
  extended by org.odata4j.producer.resources.DefaultODataProducerProvider
      extended by 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>
 
 


Field Summary
 
Fields inherited from class org.odata4j.producer.resources.DefaultODataProducerProvider
FACTORY_PROPNAME
 
Constructor Summary
ODataProducerProvider()
           
 
Method Summary
protected  ODataProducer createInstanceFromFactoryInContainerSpecificSetting()
          Creates an OData producer instance using a factory specified in a container-specific setting.
 
Methods inherited from class org.odata4j.producer.resources.DefaultODataProducerProvider
getContext, log, newProducerFromFactory, setInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODataProducerProvider

public ODataProducerProvider()
Method Detail

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