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

    
         <extension point="org.eclipse.extensionregistry.RegistryFilter">
             <filter instance="AdminConsole*" class="com.ibm.ws.admin.AdminConsoleExtensionFilter"/>
         </extension>
     
    2. Filter implements this IExtensionRegistryFilter interface
    
         package com.ibm.ws.admin;
         public class AdminConsoleExtensionFilter implements IExtensionRegistryFilter {
                 :
         }
     
    3. Host asks for a named instance of the registry to activate any associated filters
    
         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, return new IExtension[0]. It should never be a null.
        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
IBM WebSphere Application ServerTM
Release 8.5