net.esper.eql.spec
Class PluggableObjectCollection

java.lang.Object
  extended by net.esper.eql.spec.PluggableObjectCollection

public class PluggableObjectCollection
extends Object

Repository for pluggable objects of different types that follow a "namespace:name" notation.


Constructor Summary
PluggableObjectCollection()
          Ctor.
 
Method Summary
 void addObject(String namespace, String name, Class clazz, PluggableObjectType type)
          Add a single object to the collection.
 void addObjects(PluggableObjectCollection other)
          Add the plug-in objects for another collection.
 void addPatternObjects(List<ConfigurationPlugInPatternObject> configPattern)
          Add a plug-in pattern object.
 void addViews(List<ConfigurationPlugInView> configurationPlugInViews)
          Add a plug-in view.
 Map<String,Map<String,Pair<Class,PluggableObjectType>>> getPluggables()
          Returns the underlying nested map of namespace keys and name-to-object maps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluggableObjectCollection

public PluggableObjectCollection()
Ctor.

Method Detail

addViews

public void addViews(List<ConfigurationPlugInView> configurationPlugInViews)
              throws ConfigurationException
Add a plug-in view.

Parameters:
configurationPlugInViews - is a list of configured plug-in view objects.
Throws:
ConfigurationException - if the configured views don't resolve

addPatternObjects

public void addPatternObjects(List<ConfigurationPlugInPatternObject> configPattern)
                       throws ConfigurationException
Add a plug-in pattern object.

Parameters:
configPattern - is a list of configured plug-in pattern objects.
Throws:
ConfigurationException - if the configured patterns don't resolve

addObjects

public void addObjects(PluggableObjectCollection other)
Add the plug-in objects for another collection.

Parameters:
other - is the collection to add

addObject

public void addObject(String namespace,
                      String name,
                      Class clazz,
                      PluggableObjectType type)
Add a single object to the collection.

Parameters:
namespace - is the object's namespace
name - is the object's name
clazz - is the class the object resolves to
type - is the object type

getPluggables

public Map<String,Map<String,Pair<Class,PluggableObjectType>>> getPluggables()
Returns the underlying nested map of namespace keys and name-to-object maps.

Returns:
pluggable object collected