Prism.framework
Class Scaffold

java.lang.Object
  |
  +--Prism.framework.Scaffold
All Implemented Interfaces:
IScaffold, ScaffoldConstants

public class Scaffold
extends java.lang.Object
implements IScaffold, ScaffoldConstants

The type of scaffolding provided such as monitoring, message dispatching and scheduling


Fields inherited from interface Prism.framework.ScaffoldConstants
DISPATCH, MONITOR, SCHEDULER
 
Constructor Summary
Scaffold(int type)
           
 
Method Summary
 void call(java.lang.String command, java.lang.Object param)
          Make an asynchronous call to another component
 void call(java.lang.String command, java.lang.Object param, boolean syncCall)
          Make a call to another component
 int getType()
          Get the type of scaffold to identify the types of services provided
 void setDispatch(IDispatch dispatch)
          Set the dispatcher.
 void setMonitor(IMonitor mon)
           
 void setScheduler(IScheduler sch)
          Set the scheduler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scaffold

public Scaffold(int type)
Method Detail

getType

public int getType()
Description copied from interface: IScaffold
Get the type of scaffold to identify the types of services provided
Specified by:
getType in interface IScaffold
Following copied from interface: Prism.framework.IScaffold
Returns:
int Type of scaffold

setDispatch

public void setDispatch(IDispatch dispatch)
Set the dispatcher.
Parameters:
dispatch - Dispatcher for messages

setScheduler

public void setScheduler(IScheduler sch)
Set the scheduler.

setMonitor

public void setMonitor(IMonitor mon)

call

public void call(java.lang.String command,
                 java.lang.Object param)
Description copied from interface: IScaffold
Make an asynchronous call to another component
Specified by:
call in interface IScaffold
Following copied from interface: Prism.framework.IScaffold
Parameters:
method - Name of the method to be called
param - parameters to be passed

call

public void call(java.lang.String command,
                 java.lang.Object param,
                 boolean syncCall)
Description copied from interface: IScaffold
Make a call to another component
Specified by:
call in interface IScaffold
Following copied from interface: Prism.framework.IScaffold
Parameters:
method - Name of the method to be called
param - parameters to be passed
syncCall - whether the call has to be synchronized