com.espertech.esper.pattern
Class PatternObjectResolutionServiceImpl

java.lang.Object
  extended by com.espertech.esper.pattern.PatternObjectResolutionServiceImpl
All Implemented Interfaces:
PatternObjectResolutionService

public class PatternObjectResolutionServiceImpl
extends java.lang.Object
implements PatternObjectResolutionService

Resolves pattern object namespace and name to guard or observer factory class, using configuration.


Constructor Summary
PatternObjectResolutionServiceImpl(PluggableObjectCollection patternObjects)
          Ctor.
 
Method Summary
 GuardFactory create(PatternGuardSpec spec)
          Creates a guard factory considering configured plugged-in resources.
 ObserverFactory create(PatternObserverSpec spec)
          Creates an observer factory considering configured plugged-in resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternObjectResolutionServiceImpl

public PatternObjectResolutionServiceImpl(PluggableObjectCollection patternObjects)
Ctor.

Parameters:
patternObjects - is the pattern plug-in objects configured
Method Detail

create

public ObserverFactory create(PatternObserverSpec spec)
                       throws PatternObjectException
Description copied from interface: PatternObjectResolutionService
Creates an observer factory considering configured plugged-in resources.

Specified by:
create in interface PatternObjectResolutionService
Parameters:
spec - is the namespace, name and parameters for the observer
Returns:
observer factory
Throws:
PatternObjectException - if the observer cannot be resolved

create

public GuardFactory create(PatternGuardSpec spec)
                    throws PatternObjectException
Description copied from interface: PatternObjectResolutionService
Creates a guard factory considering configured plugged-in resources.

Specified by:
create in interface PatternObjectResolutionService
Parameters:
spec - is the namespace, name and parameters for the guard
Returns:
guard factory
Throws:
PatternObjectException - if the guard cannot be resolved

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