|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An OperationProvider implements a subset of operations exposed by a Grid
service. It can be configured with a service at deployment time, or added
at runtime using the GridServiceBase
interface. The
OperationProvider does not have to expose any operations, in which case
it will just be initialized and potentially called when lifecycle events
occur (if the GridServiceCallback
interface is implemented).
If the dispatcher receives a remote call on a service it will match the
operation names against the ones exposed by the getOperations
method. The QNames correspond directly to the definitions in the WSDL
definition of the service.
GridServiceBase
,
GridServiceCallback
Method Summary | |
javax.xml.namespace.QName[] |
getOperations()
Called during initialization when the Grid service needs to find out what operations are supported by this provider. |
void |
initialize(GridServiceBase serviceBase)
Called when the operation provider is added to a grid service. |
Method Detail |
public void initialize(GridServiceBase serviceBase) throws GridServiceException
serviceBase
- the service this provider is being associated with
GridServiceException
- if the initialization (and service creation
is to be aborted)public javax.xml.namespace.QName[] getOperations()
new QName[] {new QName("","*")}
, will result in all
incoming operations being redirected to this provider (apart from the
OGSI defined GridService interface operations provided by the
GridServiceBase implementation. Note that individual
operations in the OGSI namespace could still be overridded with this
approach, but not using the 'all namespaces and all operation' wildcard.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |