com.ibm.workplace.extension
Interface IExtensionRegistryFilter
-
public interface IExtensionRegistryFilter
Callback interface to filter out elements in the Extension Registry. Extensions that are attached to the RegistryFilter extension point and implement this interface will be called as necessary when a client operates on a named registry instance that matches their target specification.1. Define an Extension for the RegistryFilter Extension Point for a named registry instance
2. Filter implements this IExtensionRegistryFilter interface<extension point="org.eclipse.extensionregistry.RegistryFilter"> <filter instance="AdminConsole*" class="com.ibm.ws.admin.AdminConsoleExtensionFilter"/> </extension>
3. Host asks for a named instance of the registry to activate any associated filterspackage com.ibm.ws.admin; public class AdminConsoleExtensionFilter implements IExtensionRegistryFilter { : }
IExtensionRegistry reg = factory.getExtensionRegistry( "AdminConsole" );
-
-
Method Summary
Methods Modifier and Type Method and Description org.eclipse.core.runtime.IExtension[]
doFilter(org.eclipse.core.runtime.IExtension[] extensions)
Returns an array of IExtension objects that should be included in the valid extension list.
-
-
-
Method Detail
-
doFilter
org.eclipse.core.runtime.IExtension[] doFilter(org.eclipse.core.runtime.IExtension[] extensions)
Returns an array of IExtension objects that should be included in the valid extension list. If nothing to return, returnnew IExtension[0]
. It should never be anull
.- Parameters:
extensions
- Array of IExtension objects to be examined- Returns:
- Array of IExtension objects that should be included in the valid extension list
- See Also:
IExtension
-
-