|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.extensions.SingleExtensionFilter
public class SingleExtensionFilter
A filter implementation that enables a single extension and disables all other.
Field Summary | |
---|---|
private String |
id
|
Constructor Summary | |
---|---|
SingleExtensionFilter(Extension extension)
Create a filter that enables the given extension and disables all other. |
|
SingleExtensionFilter(String id)
Create a filter that enables the extension with the given ID and disables all others. |
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)
Do nothing since the list should contain only a single extension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String id
Constructor Detail |
---|
public SingleExtensionFilter(Extension extension)
public SingleExtensionFilter(String id)
Method Detail |
---|
public boolean isEnabled(ExtensionPoint<?> extensionPoint)
ExtensionsFilter
isEnabled
in interface ExtensionsFilter
extensionPoint
- The extension point to check
public boolean isEnabled(Extension<?> extension)
ExtensionsFilter
isEnabled
in interface ExtensionsFilter
extension
- The extension to check
public void sort(List<? extends InvokationContext<?>> extensions)
sort
in interface ExtensionsFilter
extensions
- The list of extensions to sort
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |