Class com.bumpslide.services.Service

????
   +--Dispatcher
      +--com.bumpslide.services.Service

Description

Service Interface defined as an abstract class

To be used as a base class for specific service types

Field Index

_timerInt, args, cancelled, EVENT_CANCELLED, EVENT_COMPLETE, EVENT_ERROR, multipleRequestsAllowed, requestId, timeoutMs

Method Index

new Service()

addListener(), cancel(), clearTimer(), debug(), doResolve(), getResult(), handleResult(), isValid(), load(), removeListener(), run()

Constructor Detail

Service

function Service()

Field Detail

multipleRequestsAllowed

static public multipleRequestsAllowed

EVENT_COMPLETE

static EVENT_COMPLETE

EVENT_ERROR

static EVENT_ERROR

EVENT_CANCELLED

static EVENT_CANCELLED

args

args:Array

cancelled

cancelled

requestId

requestId

timeoutMs

timeoutMs

_timerInt

_timerInt

Method Detail

getResult

function getResult()

load

function load()

validate and run (optionally pass in method name and arguments) overloaded: load( methodName:String, args:Array); OR load( args:Array ); // calls default method

doResolve

public function doResolve(nMethodName:String):Function

Resolve method calls directly - you asked for it :)

run

function run()

run service

clearTimer

function clearTimer()

handleResult

function handleResult(inResult)

cancel

function cancel()

cancel service

isValid

function isValid()

checks whether or not arguments are valid

addListener

function addListener(responder:Object)

Shortcut to add listener for all events

Parameters

responder

removeListener

function removeListener(responder:Object)

Shortcut to remove listener for all events

Parameters

responder

debug

function debug(o):Void