org.ow2.bonita.util
Class AccessorUtil

java.lang.Object
  extended by org.ow2.bonita.util.AccessorUtil

public final class AccessorUtil
extends java.lang.Object

This utility class has been provided to unify access to Bonita APIs and to avoid the use of lookups in JEE deployments: org.ow2.bonita.util.AccessorUtil.
Through this class, Nova Bonita APIs can be reached in a unified way in both local and remote applications.
For that to be done, the system property called "org.ow2.bonita.api-type" must be defined at client side to specify whether the APIs will be reached locally or remotely
(possible values are "standard","auto-detect",''ejb2" and "ejb3").


Field Summary
static java.lang.String API_TYPE_PROPERTY
           
static java.lang.String COMMANDAPI_JNDINAME
           
static java.lang.String DEFINITIONAPI_JNDINAME
           
static java.lang.String MANAGEMENT_JNDINAME
           
static java.lang.String QUERYDEFINITION_JNDINAME
           
static java.lang.String QUERYRUNTIME_JNDINAME
           
static java.lang.String RUNTIMEAPI_JNDINAME
           
 
Method Summary
static APIAccessor getAPIAccessor()
           
static CommandAPI getCommandAPI()
          To get the CommandAPI interface with a unify client access.
static DefinitionAPI getDefinitionAPI()
          To get the DefinitionAPI interface with a unify client access.
static ManagementAPI getManagementAPI()
          To get the ManagementAPI interface with a unify client access.
static QueryDefinitionAPI getQueryDefinitionAPI()
          To get the QueryDefinitionAPI interface with a unify client access.
static QueryRuntimeAPI getQueryRuntimeAPI()
          To get the QueryRuntimeAPI interface with a unify client access.
static RuntimeAPI getRuntimeAPI()
          To get the RuntimeAPI interface with a unify client access.
static
<T> T
lookup(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

API_TYPE_PROPERTY

public static final java.lang.String API_TYPE_PROPERTY
See Also:
Constant Field Values

RUNTIMEAPI_JNDINAME

public static final java.lang.String RUNTIMEAPI_JNDINAME
See Also:
Constant Field Values

MANAGEMENT_JNDINAME

public static final java.lang.String MANAGEMENT_JNDINAME
See Also:
Constant Field Values

DEFINITIONAPI_JNDINAME

public static final java.lang.String DEFINITIONAPI_JNDINAME
See Also:
Constant Field Values

QUERYRUNTIME_JNDINAME

public static final java.lang.String QUERYRUNTIME_JNDINAME
See Also:
Constant Field Values

QUERYDEFINITION_JNDINAME

public static final java.lang.String QUERYDEFINITION_JNDINAME
See Also:
Constant Field Values

COMMANDAPI_JNDINAME

public static final java.lang.String COMMANDAPI_JNDINAME
See Also:
Constant Field Values
Method Detail

getAPIAccessor

public static APIAccessor getAPIAccessor()

lookup

public static <T> T lookup(java.lang.String name)

getRuntimeAPI

public static RuntimeAPI getRuntimeAPI()
To get the RuntimeAPI interface with a unify client access.

Returns:
the RuntimeAPI interface.

getManagementAPI

public static ManagementAPI getManagementAPI()
To get the ManagementAPI interface with a unify client access.

Returns:
the ManagementAPI interface.

getDefinitionAPI

public static DefinitionAPI getDefinitionAPI()
To get the DefinitionAPI interface with a unify client access.

Returns:
the DefinitionAPI interface.

getQueryRuntimeAPI

public static QueryRuntimeAPI getQueryRuntimeAPI()
To get the QueryRuntimeAPI interface with a unify client access.

Returns:
the QueryRuntimeAPI interface.

getQueryDefinitionAPI

public static QueryDefinitionAPI getQueryDefinitionAPI()
To get the QueryDefinitionAPI interface with a unify client access.

Returns:
the QueryDefinitionAPI interface.

getCommandAPI

public static CommandAPI getCommandAPI()
To get the CommandAPI interface with a unify client access.

Returns:
the CommandAPI interface.


Copyright © 2008 OW2 Consortium. All Rights Reserved.