|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.innergrid.api.ApiFactory
public final class ApiFactory
Helper class able to create API instances, through newApi
.
Method Summary | ||
---|---|---|
static com.gridsystems.innergrid.api.ApiFactory.Api[] |
getAllApis()
Gets a list of all APIs. |
|
static
|
newApi(java.lang.Class<T> iface,
Connection con)
Gets an instance of an API for the specified remote interface and connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static com.gridsystems.innergrid.api.ApiFactory.Api[] getAllApis()
public static <T extends java.rmi.Remote> T newApi(java.lang.Class<T> iface, Connection con) throws KernelException
T
- Remote Class.iface
- the interface that the returned instance must implementcon
- the connection to use to create the Api
KernelException
- CLT011
if the connection is null
KernelException
- CLT015
if the interface is null, if is not
registered, or if instantiation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |