Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policyengine.impl
Class ExecutionContext

java.lang.Object
  extended by oracle.wsm.policyengine.impl.ExecutionContext

All Implemented Interfaces:
IExecutionContext

public class ExecutionContext
extends Object
implements IExecutionContext
Author:
cxzhao

Constructor Summary
ExecutionContext(String agentId, Map properties)
          Constructor that initialises the object.

 

Method Summary
 String getAgentID()
          Method to get the Agent ID.
 Map<String,Object> getAllProperties()
          Method to get all the properties as a ky value pair.
 Object getProperty(String propName)
          Method to get the property value for a key in argument.
 Set getPropertyNames()
          Method to get an Iterator over the list of properties available.
 void setProperty(String propName, Object propValue)
          Method to test if a certain property is available in the list of properties.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ExecutionContext

public ExecutionContext(String agentId,
                        Map properties)
Constructor that initialises the object.
Parameters:
properties - Object of type properties, the properties are read from the configuration and passed to this class by the agent framework, during initialisation.
agentId - The agent Id, as set in the configuration file.

Method Detail

getAgentID

public String getAgentID()
Method to get the Agent ID. The Agent ID is configured in the config.xml, which is loaded to this file during init, by the constructor as properties.
Returns:
The agent id as a string.

getProperty

public Object getProperty(String propName)
Method to get the property value for a key in argument.
Specified by:
getProperty in interface IExecutionContext
Parameters:
propName - The property name, whose value needs to be retrived.
Returns:
Value of that property. Null if the property does not exist.

setProperty

public void setProperty(String propName,
                        Object propValue)
Description copied from interface: IExecutionContext
Method to test if a certain property is available in the list of properties.
Specified by:
setProperty in interface IExecutionContext
Parameters:
propName - Property name to test for.

getPropertyNames

public Set getPropertyNames()
Description copied from interface: IExecutionContext
Method to get an Iterator over the list of properties available.
Specified by:
getPropertyNames in interface IExecutionContext
Returns:
Iterator over the list of properties available.

getAllProperties

public Map<String,Object> getAllProperties()
Method to get all the properties as a ky value pair.
Specified by:
getAllProperties in interface IExecutionContext
Returns:
An object of type Map, containing a key-value pairs of the properties.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.