Class EntityReaderRegistry


  • public class EntityReaderRegistry
    extends java.lang.Object
    Registry that manages and provides EntityReaders
    • Constructor Detail

      • EntityReaderRegistry

        public EntityReaderRegistry()
    • Method Detail

      • getReader

        public EntityReader getReader​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo)
        Get the first EntityReader that can read from the commerce suite given the UriInfo
        Parameters:
        uriInfo - Use to determine which EntityReader can do the reading
        Returns:
        An EntityReader
        Throws:
        java.lang.RuntimeException - or a derivative of it if no EntityReader is found
      • setEntityReaders

        public void setEntityReaders​(java.util.Collection<EntityReader> readers)