Dashboard > RIFE > ... > Repository > Named participants and cleanup support
RIFE Log In | Sign Up   View a printable version of the current page.
Named participants and cleanup support


Added by Geert Bevin, last edited by Geert Bevin on May 14, 2004
Labels: 
(None)

When declaring participants in the participants.xml file, it's possible to add an optional name attribute. This allows you to use several participants of the class by differentiating them through their name. If no name is specified (as before) the class name is used.

Rep's getParticipant method has also been updated accordingly since it now looks up participants by name instead of by class name. Note that this is fully backwards compatible. Also, even though a participant has been registered with a name, it'll still be known under its class name. When a class name is provided as the argument, the first known participant of that class will be returned. This can be seen as the default participant for the specified type.

The repository will now also clean all participants up in the reverse order of their registration. Each participant can optionally overload the cleanup() with the logic that needs to be executed to nicely terminate the participant. The whole cleanup procedure will be called when the virtual machine shuts down, or when the gate servlet or filter is destroyed.



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators