org.gcube.common.mycontainer.dependencies
Class ProxyISClient

java.lang.Object
  extended by org.gcube.common.mycontainer.dependencies.ProxyISClient
All Implemented Interfaces:
org.gcube.common.core.informationsystem.client.ISClient

public class ProxyISClient
extends Object
implements org.gcube.common.core.informationsystem.client.ISClient

An ISClient that dispatches invocations to an implementation set on MyContainerDependencies, typically a mock created in the scope of a test.

Author:
Fabio Simeoni

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gcube.common.core.informationsystem.client.ISClient
org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException, org.gcube.common.core.informationsystem.client.ISClient.ISMalformedResultException, org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
 
Constructor Summary
ProxyISClient()
           
 
Method Summary
<RESULT> List<RESULT>
execute(org.gcube.common.core.informationsystem.client.ISQuery<RESULT> query, org.gcube.common.core.scope.GCUBEScope scope)
           
<RESULT> org.gcube.common.core.informationsystem.client.ISInputStream<RESULT>
executeByRef(org.gcube.common.core.informationsystem.client.ISQuery<RESULT> query, org.gcube.common.core.scope.GCUBEScope scope)
           
<RESULT,QUERY extends org.gcube.common.core.informationsystem.client.ISQuery<RESULT>>
QUERY
getQuery(Class<QUERY> type)
           
 org.gcube.common.core.informationsystem.client.queries.GCUBEGenericQuery getQuery(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyISClient

public ProxyISClient()
Method Detail

execute

public <RESULT> List<RESULT> execute(org.gcube.common.core.informationsystem.client.ISQuery<RESULT> query,
                                     org.gcube.common.core.scope.GCUBEScope scope)
                     throws org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException,
                            org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException,
                            org.gcube.common.core.informationsystem.ISException
Specified by:
execute in interface org.gcube.common.core.informationsystem.client.ISClient
Throws:
org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException
org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
org.gcube.common.core.informationsystem.ISException

executeByRef

public <RESULT> org.gcube.common.core.informationsystem.client.ISInputStream<RESULT> executeByRef(org.gcube.common.core.informationsystem.client.ISQuery<RESULT> query,
                                                                                                  org.gcube.common.core.scope.GCUBEScope scope)
                                                                                  throws org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException,
                                                                                         org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException,
                                                                                         org.gcube.common.core.informationsystem.ISException
Specified by:
executeByRef in interface org.gcube.common.core.informationsystem.client.ISClient
Throws:
org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException
org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
org.gcube.common.core.informationsystem.ISException

getQuery

public <RESULT,QUERY extends org.gcube.common.core.informationsystem.client.ISQuery<RESULT>> QUERY getQuery(Class<QUERY> type)
                                                                                      throws org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException,
                                                                                             InstantiationException,
                                                                                             IllegalAccessException
Specified by:
getQuery in interface org.gcube.common.core.informationsystem.client.ISClient
Throws:
org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
InstantiationException
IllegalAccessException

getQuery

public org.gcube.common.core.informationsystem.client.queries.GCUBEGenericQuery getQuery(String name)
                                                                                  throws org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
Specified by:
getQuery in interface org.gcube.common.core.informationsystem.client.ISClient
Throws:
org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException


Copyright © 2013. All Rights Reserved.