Class ICFactory
java.lang.Object
org.gcube.resources.discovery.icclient.ICFactory
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gcube.resources.discovery.client.api.DiscoveryClient<String>client()Deprecated.Returns aDiscoveryClientthat submits queries to the Information Collector service without parsing the results.static <R> org.gcube.resources.discovery.client.api.DiscoveryClient<R>Deprecated.Returns aDiscoveryClientthat 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 aDiscoveryClientthat submits queries to the Information Collector service and parses query results with a givenResultParser.static ICFactory.ParameterBuilderparams()Deprecated.static org.gcube.resources.discovery.client.queries.impl.XQueryDeprecated.Returns aXQueryfor a given resource type.
-
Field Details
-
LOCAL_CLIENT_CLASS_NAME
Deprecated.- See Also:
-
nsDeclaration
Deprecated.- See Also:
-
instancesNSDeclaration
Deprecated.- See Also:
-
-
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 aXQueryfor 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 aDiscoveryClientthat 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
Deprecated.Returns aDiscoveryClientthat 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 aDiscoveryClientthat submits queries to the Information Collector service and parses query results with a givenResultParser.- Type Parameters:
R- the type of resources returned by the parser- Parameters:
parser- the resource parser- Returns:
- the client
-
params
Deprecated.
-