ExtensionPointIteratedHandler

public abstract class ExtensionPointIteratedHandler implements ExtensionPointHandler

An ExtensionPointIteratedHandler handles all the extensions of the extension point it represents one by one.

Author:Hugo Y. K. Lam

See also: ExtensionPoint

Methods

isFaultTolerated

protected boolean isFaultTolerated()

Checks if fault tolerance is enabled.

Returns:true if fault tolerance is enabled.

processExtension

public abstract void processExtension(Extension extension)

Invoked by processExtensions() for processing each extension.

Parameters:
  • extension – the extension to be processed.

processExtensions

public void processExtensions(Collection extensions)

Processes the extensions one by one. If fault tolerance is enabled, no exception will be thrown and processes will be carried on even if there are any exceptions.

Parameters:
  • extensions – the extensions of the extension point it represents.
Throws:

See also: hk.hku.cecid.piazza.commons.spa.ExtensionPointHandler.processExtensions(java.util.Collection)