Annotation Type Activate
Activate. This annotation is useful for automatically activate certain extensions with the given criteria,
for examples:
@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 inURLcriteria.
ExtensionLoader.getActivateExtension(URL, String, String) to find out all activated
extensions with the given criteria.- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Deprecated.String[]Deprecated.String[]Activate the current extension when one of the groups matches.String[]Activate loadClass when the current extension when the specified className all matchintAbsolute ordering info, optional Ascending order, smaller values will be in the front o the list.String[]Activate the current extension when the specified keys appear in the URL's parameters.
-
Element Details
-
group
String[] groupActivate the current extension when one of the groups matches. The group passed intoExtensionLoader.getActivateExtension(URL, String, String)will be used for matching.- Returns:
- group names to match
- See Also:
- Default:
{}
-
value
String[] valueActivate the current extension when the specified keys appear in the URL's parameters.For example, given
@Activate("cache, validation"), the current extension will be return only when there's eithercacheorvalidationkey appeared in the URL's parameters.- Returns:
- URL parameter keys
- See Also:
- Default:
{}
-
before
Deprecated.Relative ordering info, optional Deprecated since 2.7.0- Returns:
- extension list which should be put before the current one
- Default:
{}
-
after
Deprecated.Relative ordering info, optional Deprecated since 2.7.0- Returns:
- extension list which should be put after the current one
- Default:
{}
-
order
int orderAbsolute ordering info, optional Ascending order, smaller values will be in the front o the list.- Returns:
- absolute ordering info
- Default:
0
-
onClass
String[] onClassActivate loadClass when the current extension when the specified className all match- Returns:
- className names to all match
- Default:
{}
-