Class PatternObjectResolutionServiceImpl
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.core.PatternObjectResolutionServiceImpl
- All Implemented Interfaces:
PatternObjectResolutionService
public class PatternObjectResolutionServiceImpl
extends Object
implements PatternObjectResolutionService
Resolves pattern object namespace and name to guard or observer factory class, using configuration.
-
Constructor Summary
ConstructorDescriptionPatternObjectResolutionServiceImpl
(PluggableObjectCollection patternObjects) Ctor. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(PatternGuardSpec spec) Creates a guard factory considering configured plugged-in resources.create
(PatternObserverSpec spec) Creates an observer factory considering configured plugged-in resources.
-
Constructor Details
-
PatternObjectResolutionServiceImpl
Ctor.- Parameters:
patternObjects
- is the pattern plug-in objects configured
-
-
Method Details
-
create
Description copied from interface:PatternObjectResolutionService
Creates an observer factory considering configured plugged-in resources.- Specified by:
create
in interfacePatternObjectResolutionService
- Parameters:
spec
- is the namespace, name and parameters for the observer- Returns:
- observer factory
- Throws:
PatternObjectException
- if the observer cannot be resolved
-
create
Description copied from interface:PatternObjectResolutionService
Creates a guard factory considering configured plugged-in resources.- Specified by:
create
in interfacePatternObjectResolutionService
- Parameters:
spec
- is the namespace, name and parameters for the guard- Returns:
- guard factory
- Throws:
PatternObjectException
- if the guard cannot be resolved
-