|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
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 |
---|
org.eclipse.core.runtime.IExtension[] doFilter(org.eclipse.core.runtime.IExtension[] extensions)
new IExtension[0]
. It should never be a null
.
extensions
- Array of IExtension objects to be examined
IExtension
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |