Class ODataServiceFactory


  • public abstract class ODataServiceFactory
    extends Object
    Creates instance of custom OData service.
    • Field Detail

      • FACTORY_LABEL

        public static final String FACTORY_LABEL
        Label used in web.xml to assign servlet init parameter to factory class instance.
        See Also:
        Constant Field Values
      • FACTORY_CLASSLOADER_LABEL

        public static final String FACTORY_CLASSLOADER_LABEL
        Label used in core to access application class loader
        See Also:
        Constant Field Values
      • FACTORY_INSTANCE_LABEL

        public static final String FACTORY_INSTANCE_LABEL
        Label used in web.xml to assign servlet init parameter to factory class instance.
        See Also:
        Constant Field Values
      • PATH_SPLIT_LABEL

        public static final String PATH_SPLIT_LABEL
        Label used in web.xml to assign servlet init parameter for a path split (service resolution).
        See Also:
        Constant Field Values
      • ACCEPT_FORM_ENCODING

        public static final String ACCEPT_FORM_ENCODING
        Label used in web.xml to assign servlet init parameter for a accept form encoding.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ODataServiceFactory

        public ODataServiceFactory()
    • Method Detail

      • createODataSingleProcessorService

        public ODataService createODataSingleProcessorService​(EdmProvider provider,
                                                              ODataSingleProcessor processor)
        Create a default service instance based on ODataSingleProcessor.
        Parameters:
        provider - A custom EdmProvider implementation.
        processor - A custom processor implementation derived from ODataSingleProcessor .
        Returns:
        A new default ODataSingleProcessorService instance.
      • getCallback

        public <T extends ODataCallback> T getCallback​(Class<T> callbackInterface)
        A service can return implementation classes for various callback interfaces.
        Type Parameters:
        T - Callbak type
        Parameters:
        callbackInterface - a interface type to query for implementation
        Returns:
        a callback implementation for this interface or null