Skip navigation links

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

E10689-03


oracle.wsm.policyengine.impl
Class ExecutionContext

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

All Implemented Interfaces:
IExecutionContext

public class ExecutionContext
extends java.lang.Object
implements IExecutionContext
Author:
cxzhao

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

 

Method Summary
 java.lang.String getAgentID()
          Method to get the Agent ID.
 java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
          Method to get all the properties as a ky value pair.
 java.lang.Object getProperty(java.lang.String propName)
          Method to get the property value for a key in argument.
 java.util.Set getPropertyNames()
          Method to get an Iterator over the list of properties available.
 void setProperty(java.lang.String propName, java.lang.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(java.lang.String agentId,
                        java.util.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 java.lang.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 java.lang.Object getProperty(java.lang.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(java.lang.String propName,
                        java.lang.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 java.util.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 java.util.Map<java.lang.String,java.lang.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.4)

E10689-03


Copyright © 2007-2009, Oracle. All rights reserved.