2.17.2: 2011-06-17

net.sf.basedb.util.extensions
Interface ExtensionsFilter

All Known Implementing Classes:
DefaultFilter, Settings, SingleExtensionFilter

public interface ExtensionsFilter

Allows extensions and extension points to be enabled/disabled and sorted externally. An object of this class is used by the Registry.useExtensions(ClientContext, ExtensionsFilter, String...) method.

Version:
2.7
Author:
nicklas
Last modified
$Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $

Method Summary
 boolean isEnabled(Extension<?> extension)
          Check if an extension is enabled or disabled.
 boolean isEnabled(ExtensionPoint<?> extensionPoint)
          Check if an extension point is enabled or disabled.
 void sort(List<? extends InvokationContext<?>> extensions)
          Sort a list of invoked extensions according to some property.
 

Method Detail

isEnabled

boolean isEnabled(ExtensionPoint<?> extensionPoint)
Check if an extension point is enabled or disabled.

Parameters:
extensionPoint - The extension point to check
Returns:
TRUE if the extension point is enabled, FALSE if it is disabled

isEnabled

boolean isEnabled(Extension<?> extension)
Check if an extension is enabled or disabled.

Parameters:
extension - The extension to check
Returns:
TRUE if the extension is enabled, FALSE if it is disabled

sort

void sort(List<? extends InvokationContext<?>> extensions)
Sort a list of invoked extensions according to some property.

Parameters:
extensions - The list of extensions to sort

2.17.2: 2011-06-17