obixserver.core
Class InvocationManager

java.lang.Object
  extended by obixserver.core.InvocationManager

public class InvocationManager
extends Object

Performs invocation of op's.


Field Summary
private  ObjBroker objBroker
          Object broker
private  ObjCache objCache
          Object cache
private  WatchManager watchManager
          Watch manager for watch operations.
private  obix.Obj watchServiceObj
          Used as parent to newly crated watches.
 
Constructor Summary
InvocationManager(ObjBroker objBroker, ObjCache objCache, WatchManager watchManager)
           
 
Method Summary
private  obix.Op createOp(String name, obix.Contract in, obix.Contract out)
           
(package private)  void init()
           
 obix.Obj invoke(obix.Obj targetObj, obix.Obj paramObj)
          Processes invocation of operation with parameter.
private  List urisToObjs(obix.List uriList)
           
 obix.Obj watchSetToWatchOut(List changedSet, obix.Feed feed)
          Convert a set of of Obj's to a WatchOut response Obj.
 obix.Obj watchToObj(Watch watch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

watchManager

private WatchManager watchManager
Watch manager for watch operations.


objBroker

private ObjBroker objBroker
Object broker


watchServiceObj

private obix.Obj watchServiceObj
Used as parent to newly crated watches.


objCache

private ObjCache objCache
Object cache

Constructor Detail

InvocationManager

public InvocationManager(ObjBroker objBroker,
                         ObjCache objCache,
                         WatchManager watchManager)
Method Detail

init

void init()

watchToObj

public obix.Obj watchToObj(Watch watch)

createOp

private obix.Op createOp(String name,
                         obix.Contract in,
                         obix.Contract out)

watchSetToWatchOut

public obix.Obj watchSetToWatchOut(List changedSet,
                                   obix.Feed feed)
Convert a set of of Obj's to a WatchOut response Obj. Does cloning of Obj's so that parent and child relationship can be changed.

Parameters:
changedSet -
Returns:
watchout obj

invoke

public obix.Obj invoke(obix.Obj targetObj,
                       obix.Obj paramObj)
Processes invocation of operation with parameter.

Parameters:
targetObj - target of operation (including the op)
paramObj - parameter of the operation
Returns:
obj representing the return value

urisToObjs

private List urisToObjs(obix.List uriList)


Copyright © 2006-2008 Peter Michalek All Rights Reserved.