edu.uci.isr.yancees.plugin
Interface PluginFactoryInterface

All Known Implementing Classes:
AndPluginFactory, ElvinPluginFactory, FilterPluginFactory, GenericPluginFactory, MobilityProtocolPluginFactory, NotificationPluginFactory, OrPluginFactory, PollProtocolPluginFactory, PullPluginFactory, PushPluginFactory, RequirePluginFactory, RulePluginFactory, SequencePluginFactory, SienaPluginFactory, SubscriptionPluginFactory, ThenPluginFactory

public interface PluginFactoryInterface

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


Method Summary
 PluginInterface createNewInstance(org.w3c.dom.Node subTree)
          Creates a plug-in instance that processes the expression provided The default creation mode is unshared: a new instance is created.
 SharedPluginInterface createNewSharedInstance(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

public java.lang.String[] getTags()
Returns:
the XML tags that the current factory is able to processs.

createNewInstance

public PluginInterface createNewInstance(org.w3c.dom.Node subTree)
                                  throws PluginFactoryException
Creates a plug-in instance that processes the expression provided The default creation mode is unshared: a new instance is created.

Returns:
a reference to the plugin created
Throws:
an - exception in case the creation was not successful
PluginFactoryException

createNewSharedInstance

public SharedPluginInterface createNewSharedInstance(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

Returns:
a reference to the plugin created
Throws:
an - exception in case the creation was not successful
PluginFactoryException