|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.core.EngineImportServiceImpl
public class EngineImportServiceImpl
Implementation for engine-level imports.
Constructor Summary | |
---|---|
EngineImportServiceImpl()
Ctor. |
Method Summary | |
---|---|
void |
addAggregation(String functionName,
String aggregationClass)
Add an aggregation function. |
void |
addImport(String importName)
Add an import, such as "com.mypackage.*" or "com.mypackage.MyClass". |
protected String[] |
getImports()
For testing, returns imports. |
AggregationSupport |
resolveAggregation(String name)
Used at statement compile-time to try and resolve a given function name into an aggregation method. |
protected Class |
resolveClass(String className)
Finds a class by class name using the auto-import information provided. |
Method |
resolveMethod(String classNameAlias,
String methodName,
Class[] paramTypes)
Resolves a given class, method and list of parameter types to a static method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EngineImportServiceImpl()
Method Detail |
---|
public void addImport(String importName) throws EngineImportException
EngineImportService
addImport
in interface EngineImportService
importName
- is the import to add
EngineImportException
- if the information or format is invalidpublic void addAggregation(String functionName, String aggregationClass) throws EngineImportException
EngineImportService
addAggregation
in interface EngineImportService
functionName
- is the name of the function to make known.aggregationClass
- is the class that provides the aggregator
EngineImportException
- throw if format or information is invalidpublic AggregationSupport resolveAggregation(String name) throws EngineImportException, EngineImportUndefinedException
EngineImportService
resolveAggregation
in interface EngineImportService
name
- is the function name
EngineImportException
- if the aggregation providing class could not be loaded or doesn't match
EngineImportUndefinedException
- if the function is not a configured aggregation functionpublic Method resolveMethod(String classNameAlias, String methodName, Class[] paramTypes) throws EngineImportException
EngineImportService
resolveMethod
in interface EngineImportService
classNameAlias
- is the class name to usemethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static methodprotected Class resolveClass(String className) throws ClassNotFoundException
className
- is the class name to find
ClassNotFoundException
- if the class cannot be loadedprotected String[] getImports()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |