@Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Activate
@Activate can be used to load certain Filter extension when there are
multiple implementations.
group() specifies group criteria. Framework SPI defines the valid group values.
value() specifies parameter key in URL criteria.
ExtensionLoader.getActivateExtension(URL, String, String) to find out all activated
extensions with the given criteria.SPI,
URL,
ExtensionLoader| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
after
Relative ordering info, optional
|
String[] |
before
Relative ordering info, optional
|
String[] |
group
Activate the current extension when one of the groups matches.
|
int |
order
Absolute ordering info, optional
|
String[] |
value
Activate the current extension when the specified keys appear in the URL's parameters.
|
public abstract String[] group
ExtensionLoader.getActivateExtension(URL, String, String) will be used for matching.ExtensionLoader.getActivateExtension(URL, String, String)public abstract String[] value
For example, given @Activate("cache, validation"), the current extension will be return only when
there's either cache or validation key appeared in the URL's parameters.
ExtensionLoader.getActivateExtension(URL, String),
ExtensionLoader.getActivateExtension(URL, String, String)public abstract String[] before
public abstract String[] after
public abstract int order
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.