Difference between revisions of "Advanced Topics"
From GCube System
Andrea.manzi (Talk | contribs) (→Interfacing the Information System) |
Andrea.manzi (Talk | contribs) (→ISClient interface) |
||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
− | + | public <RESULT> List<RESULT> execute(ISQuery<RESULT> query, GCUBEScope scope,GCUBEContext ...context) throws ISMalformedQueryException,ISInvalidQueryException,ISException; | |
</pre> | </pre> | ||
+ | |||
+ | <pre> | ||
+ | public <RESULT, QUERY extends ISQuery<RESULT>> QUERY getQuery(Class<QUERY> clazz) throws ISUnsupportedQueryException; | ||
+ | </pre> | ||
==== Sample usage ==== | ==== Sample usage ==== | ||
Revision as of 12:29, 31 March 2008
Contents
Interfacing the Information System
The gCore Frameork has been designed to work independently from a IS specific Implementation. In order to let the gCF unbound from a IS implementation both query & publishing interfaces have been designed. The gCF implements than a dynamic class loader that ( reading a implementation file that contains the mapping btw the IS interfaces and their implementations) can abstract over the IS technology.
ISClient interface
The IS Client interface defines only two methods:
public <RESULT> List<RESULT> execute(ISQuery<RESULT> query, GCUBEScope scope,GCUBEContext ...context) throws ISMalformedQueryException,ISInvalidQueryException,ISException;
public <RESULT, QUERY extends ISQuery<RESULT>> QUERY getQuery(Class<QUERY> clazz) throws ISUnsupportedQueryException;
Sample usage
ISPublisher interface
Sample usage
Service security
Configuring gContainer with Security
Configuring gCube Service with Credentials
--Manuele.simi 20:11, 28 March 2008 (EET)