Class ICFactory


  • @Deprecated
    public class ICFactory
    extends Object
    Deprecated.
    D4Science using User Resource Registry instead of the old Information System
    Factory of XQuerys and DiscoveryClients for the Information Collector service.
    Author:
    Fabio Simeoni
    See Also:
    Resource Registry Client
    • Constructor Summary

      Constructors 
      Constructor Description
      ICFactory()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static org.gcube.resources.discovery.client.api.DiscoveryClient<String> client()
      Deprecated.
      Returns a DiscoveryClient that submits queries to the Information Collector service without parsing the results.
      static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientFor​(Class<R> type)
      Deprecated.
      Returns a DiscoveryClient that submits queries to the Information Collector service and parses query results with a given resource type.
      static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientWith​(org.gcube.resources.discovery.client.api.ResultParser<R> parser)
      Deprecated.
      Returns a DiscoveryClient that submits queries to the Information Collector service and parses query results with a given ResultParser.
      static ICFactory.ParameterBuilder params()
      Deprecated.
       
      static org.gcube.resources.discovery.client.queries.impl.XQuery queryFor​(Class<?> type)
      Deprecated.
      Returns a XQuery for a given resource type.
    • Constructor Detail

      • ICFactory

        public ICFactory()
        Deprecated.
    • Method Detail

      • queryFor

        public static org.gcube.resources.discovery.client.queries.impl.XQuery queryFor​(Class<?> type)
                                                                                 throws IllegalStateException
        Deprecated.
        Returns a XQuery for a given resource type.
        Parameters:
        type - the resource type
        Returns:
        the query
        Throws:
        IllegalStateException - if a query for the resource type has not been previously registered
      • clientFor

        public static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientFor​(Class<R> type)
        Deprecated.
        Returns a DiscoveryClient that submits queries to the Information Collector service and parses query results with a given resource type.
        Parameters:
        type - the resource type
        Returns:
        the client
      • client

        public static org.gcube.resources.discovery.client.api.DiscoveryClient<String> client()
        Deprecated.
        Returns a DiscoveryClient that submits queries to the Information Collector service without parsing the results.
        Returns:
        the client
      • clientWith

        public static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R> clientWith​(org.gcube.resources.discovery.client.api.ResultParser<R> parser)
        Deprecated.
        Returns a DiscoveryClient that submits queries to the Information Collector service and parses query results with a given ResultParser.
        Parameters:
        parser - the resource parser
        Returns:
        the client