| java.lang.Object | |
| ↳ | org.odata4j.producer.resources.DefaultODataProducerProvider |
Known Direct Subclasses
|
Default OData producer provider.
OData producer instances can either be set statically (method setInstance)
or created by a factory (ODataProducerFactory) specified by the corresponding
system property (constant FACTORY_PROPNAME).
To introduce an additional container-specific setting, it is required to extend
this class and override method createInstanceFromFactoryInContainerSpecificSetting.
Furthermore a subclass of AbstractODataApplication has to be created to make
the new provider available to the JAX-RS runtime.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | FACTORY_PROPNAME | Constant used as system property name. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| STATIC | |||||||||||
| instance | |||||||||||
| log | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the given OData producer as a static singleton.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an OData producer instance using a factory specified in a container-specific
setting.
| |||||||||||
Helper method to log an INFO message.
| |||||||||||
Helper method to create an OData producer instance from a given producer factory
(
ODataProducerFactory). | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
javax.ws.rs.ext.ContextResolver
| |||||||||||
Constant used as system property name.
Sets the given OData producer as a static singleton.
| producer | The OData producer |
|---|
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.
null if no container-specific setting exists
Helper method to log an INFO message.
| msg | The log message |
|---|
Helper method to create an OData producer instance from a given producer factory
(ODataProducerFactory).
| factoryTypeName | The factory's type name (fully qualified) |
|---|---|
| props | The properties to use when constructing the producer |