@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
Deprecated.
|
String[] |
before
Deprecated.
|
String[] |
group
Activate the current extension when one of the groups matches.
|
String[] |
onClass
Activate loadClass when the current extension when the specified className all match
|
int |
order
Absolute ordering info, optional
Ascending order, smaller values will be in the front o the list.
|
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)@Deprecated public abstract String[] before
@Deprecated public abstract String[] after
public abstract int order
public abstract String[] onClass
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.