Context

This class can be used to store various sorts of runtime information, such as temp directory paths. The BPE, for example, uses it to store a reference to the database connection object. It contains two methods:

Method

getContext

Method description

Retrieves the stored information

Syntax

public Object getContext(String contextName)

Parameters

contextName
The name associated with the information

Method

setContext

Method description

Sets the information

Syntax

public void setContext(String contextName, Object context)

Parameters

contextName
The name associated with the information

context
The information

Copyright IBM Corp. 2003, 2004