edu.uci.isr.yancees.plugin
Interface MOPluginFactoryInterface

All Superinterfaces:
PluginFactoryInterface
All Known Implementing Classes:
GenericPluginFactory, NotificationPluginFactory, SubscriptionPluginFactory

public interface MOPluginFactoryInterface
extends PluginFactoryInterface

This is the interface of the plug-ins of the core of the system


Method Summary
 MOPluginInterface createNewInstance(SubscriberInterface si, SubscriptionInterface sub, org.w3c.dom.Node subTree)
          Creates a plug-in instance that processes the expression provided The default creation mode is "unshared": meaning a new instance is created.
 MOSharedPluginInterface createNewSharedInstance(SubscriberInterface si, SubscriptionInterface sub, org.w3c.dom.Node subTree)
          Creates shared plug-in instance that processes the expression provided This instance is shared.
 java.lang.String[] getTags()
           
 

Method Detail

getTags

java.lang.String[] getTags()
Specified by:
getTags in interface PluginFactoryInterface
Returns:
the XML tags that the current factory is able to processs.

createNewInstance

MOPluginInterface createNewInstance(SubscriberInterface si,
                                    SubscriptionInterface sub,
                                    org.w3c.dom.Node subTree)
                                    throws PluginFactoryException
Creates a plug-in instance that processes the expression provided The default creation mode is "unshared": meaning a new instance is created.

Parameters:
si - TODO
sub - TODO
expression - the expression to be processed by the new instance
Returns:
a reference to the plugin created
Throws:
an - exception in case the creation was not successful
PluginFactoryException

createNewSharedInstance

MOSharedPluginInterface createNewSharedInstance(SubscriberInterface si,
                                                SubscriptionInterface sub,
                                                org.w3c.dom.Node subTree)
                                                throws PluginFactoryException
Creates shared plug-in instance that processes the expression provided This instance is shared. Meaning that the same object is returned over and over

Parameters:
si - TODO
sub - TODO
expression - the expression to be processed by the new instance
Returns:
a reference to the plugin created
Throws:
an - exception in case the creation was not successful
PluginFactoryException