Class ICFactory

java.lang.Object
org.gcube.resources.discovery.icclient.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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.gcube.resources.discovery.client.api.DiscoveryClient<String>
    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.
    Deprecated.
     
    static org.gcube.resources.discovery.client.queries.impl.XQuery
    queryFor(Class<?> type)
    Deprecated.
    Returns a XQuery for a given resource type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ICFactory

      public ICFactory()
      Deprecated.
  • Method Details

    • 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.
      Type Parameters:
      R - the type of resources returned by the client
      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. to override the client, define a class named org.gcube.informationsystem.collector.client.LocalDiscoveryClient and include it in the classpath
      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.
      Type Parameters:
      R - the type of resources returned by the parser
      Parameters:
      parser - the resource parser
      Returns:
      the client
    • params

      public static ICFactory.ParameterBuilder params()
      Deprecated.