/*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
* *************************************************************************************
*/
package com.espertech.esper.client.hook;
/**
* Available when using JSR-223 scripts or MVEL, for access of script attributes.
*/
public interface EPLScriptContext {
/**
* Set a script attributed.
* @param attribute name to use
* @param value value to set
*/
public void setScriptAttribute(String attribute, Object value);
/**
* Return a script attribute value.
* @param attribute name to retrieve value for
* @return attribute value or null if undefined
*/
public Object getScriptAttribute(String attribute);
}