Package net.sf.basedb.util.extensions
Class SingleExtensionFilter
java.lang.Object
net.sf.basedb.util.extensions.SingleExtensionFilter
- All Implemented Interfaces:
ExtensionsFilter
A filter implementation that enables a single extension and
disables all other.
- Version:
- 2.8
- Author:
- nicklas
- Last modified
- $Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a filter that enables the extension with the given ID and disables all others.SingleExtensionFilter
(Extension<?> extension) Create a filter that enables the given extension and disables all other. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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) Do nothing since the list should contain only a single extension.
-
Field Details
-
id
-
-
Constructor Details
-
SingleExtensionFilter
Create a filter that enables the given extension and disables all other. -
SingleExtensionFilter
Create a filter that enables the extension with the given ID and disables all others.
-
-
Method Details
-
isEnabled
Description copied from interface:ExtensionsFilter
Check if an extension point is enabled or disabled.- Specified by:
isEnabled
in interfaceExtensionsFilter
- Parameters:
extensionPoint
- The extension point to check- Returns:
- TRUE if the extension point is enabled, FALSE if it is disabled
-
isEnabled
Description copied from interface:ExtensionsFilter
Check if an extension is enabled or disabled.- Specified by:
isEnabled
in interfaceExtensionsFilter
- Parameters:
extension
- The extension to check- Returns:
- TRUE if the extension is enabled, FALSE if it is disabled
-
sort
Do nothing since the list should contain only a single extension.- Specified by:
sort
in interfaceExtensionsFilter
- Parameters:
extensions
- The list of extensions to sort
-