- All Implemented Interfaces:
public abstract class ExtensionFilter extends Object implements ExtensionPointFilters out
ExtensionComponents discovered by
ExtensionFinders, as if they were never discovered.
This is useful for those who are deploying restricted/simplified version of Jenkins by reducing the functionality.
Because of the way
ExtensionFinderworks, even when an extension component is rejected by a filter, its instance still gets created first.
Constructors Constructor Description
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description
abstract <T> boolean
allows(Class<T> type, ExtensionComponent<T> component)Checks if a newly discovered extension is allowed to participate into Jenkins.
static <T> boolean
isAllowed(Class<T> type, ExtensionComponent<T> component)
public abstract <T> boolean allows(Class<T> type, ExtensionComponent<T> component)Checks if a newly discovered extension is allowed to participate into Jenkins.
type- The type of the extension that we are discovering. This is not the actual instance type, but the contract type, such as
component- the actual discovered
trueto let the component into Jenkins.
falseto drop it and pretend as if it didn't exist. When any one of
ExtensionFilters veto a component, it gets dropped.