metagloss 0.0.2

net.sf.metagloss.db
Class QueryManager

java.lang.Object
  extended by net.sf.metagloss.db.QueryManager

public class QueryManager
extends java.lang.Object

Utility class for retrieving the implementation of a QueryProvider interface.

See Also:
Query

Method Summary
static
<T extends QueryProvider>
T
getImplementation(java.lang.Class<T> queryInterface)
          Gets the implementation corresponding to a QueryProvider interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImplementation

public static <T extends QueryProvider> T getImplementation(java.lang.Class<T> queryInterface)
Gets the implementation corresponding to a QueryProvider interface.

Type Parameters:
T - Query-annotated interface.
Parameters:
queryInterface - Query-annotated interface class.
Returns:
Interface implementation.