com.espertech.esper.client.deploy
Interface StatementNameResolver

All Superinterfaces:
java.io.Serializable

public interface StatementNameResolver
extends java.io.Serializable

Implement this interface to provide a custom statement name for the statements deployed via the deployment API.

Statement names provided by the resolver override the statement name provided via the @Name annotation.


Method Summary
 java.lang.String getStatementName(StatementDeploymentContext context)
          Returns the statement name to assign to a newly-deployed statement.
 

Method Detail

getStatementName

java.lang.String getStatementName(StatementDeploymentContext context)
Returns the statement name to assign to a newly-deployed statement.

Implementations would typically interrogate the context object EPL expression or module and module item information and determine the right statement name to assign.

Parameters:
context - the statement's deployment context
Returns:
statement name or null if none needs to be assigned and the default or @Name annotated name should be used

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com