org.gcube.data.tml.proxies
Class TServiceFactory

java.lang.Object
  extended by org.gcube.data.tml.proxies.TServiceFactory

public class TServiceFactory
extends Object

Factory methods for TBinders, TReaders, and TWriters and related queries.

Author:
Fabio Simeoni

Field Summary
static TBinderPlugin binderPlugin
          The TBinderPlugin.
static TReaderPlugin readerPlugin
          The TReaderPlugin.
static TWriterPlugin writerPlugin
          The TWriterPlugin.
 
Constructor Summary
TServiceFactory()
           
 
Method Summary
static org.gcube.common.clients.gcore.builders.SingletonBuilder<? extends AsyncTBinder> async_binder()
          Returns an AsyncTBinder builder.
static org.gcube.common.clients.gcore.builders.SingletonBuilder<? extends TBinder> binder()
          Returns a TBinder builder.
static org.gcube.common.clients.gcore.queries.StatefulQuery plugin(String name)
          Returns a query for TBinder endpoints with a given plugin.
static org.gcube.common.clients.gcore.builders.StatefulBuilder<TReader> reader()
          Returns a TReader builder.
static SourceQueryBuilder readSource()
          Returns a builder for a query for TReader instances for a given source.
static org.gcube.common.clients.gcore.builders.StatefulBuilder<TWriter> writer()
          Returns a TReader builder.
static SourceQueryBuilder writeSource()
          Returns a builder for a query for TWriter instances for a given source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

binderPlugin

public static final TBinderPlugin binderPlugin
The TBinderPlugin.


readerPlugin

public static final TReaderPlugin readerPlugin
The TReaderPlugin.


writerPlugin

public static final TWriterPlugin writerPlugin
The TWriterPlugin.

Constructor Detail

TServiceFactory

public TServiceFactory()
Method Detail

binder

public static org.gcube.common.clients.gcore.builders.SingletonBuilder<? extends TBinder> binder()
Returns a TBinder builder.

Returns:
the the builder

async_binder

public static org.gcube.common.clients.gcore.builders.SingletonBuilder<? extends AsyncTBinder> async_binder()
Returns an AsyncTBinder builder.

Returns:
the builder

reader

public static org.gcube.common.clients.gcore.builders.StatefulBuilder<TReader> reader()
Returns a TReader builder.

Returns:
the builder

writer

public static org.gcube.common.clients.gcore.builders.StatefulBuilder<TWriter> writer()
Returns a TReader builder.

Returns:
the builder

plugin

public static org.gcube.common.clients.gcore.queries.StatefulQuery plugin(String name)
Returns a query for TBinder endpoints with a given plugin.

Parameters:
name - the name of the plugin
Returns:
the query

readSource

public static SourceQueryBuilder readSource()
Returns a builder for a query for TReader instances for a given source.

Returns:
the query

writeSource

public static SourceQueryBuilder writeSource()
Returns a builder for a query for TWriter instances for a given source.

Returns:
the query


Copyright © 2012. All Rights Reserved.