注释类型 Activate
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Activate
Activate. This annotation is useful for automatically activate certain extensions with the given criteria, for examples:@Activate
can be used to load certainFilter
extension when there are multiple implementations.group()
specifies group criteria. Framework SPI defines the valid group values.value()
specifies parameter key inURL
criteria.
ExtensionLoader.getActivateExtension(URL, String, String)
to find out all activated extensions with the given criteria.- 另请参阅:
SPI
,URL
,ExtensionLoader
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 String[]
after
Relative ordering info, optionalString[]
before
Relative ordering info, optionalString[]
group
Activate the current extension when one of the groups matches.int
order
Absolute ordering info, optionalString[]
value
Activate the current extension when the specified keys appear in the URL's parameters.
-
-
-
元素详细资料
-
group
String[] group
Activate the current extension when one of the groups matches. The group passed intoExtensionLoader.getActivateExtension(URL, String, String)
will be used for matching.- 返回:
- group names to match
- 另请参阅:
ExtensionLoader.getActivateExtension(URL, String, String)
- 默认值:
- {}
-
-
-
value
String[] value
Activate 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 eithercache
orvalidation
key appeared in the URL's parameters.- 返回:
- URL parameter keys
- 另请参阅:
ExtensionLoader.getActivateExtension(URL, String)
,ExtensionLoader.getActivateExtension(URL, String, String)
- 默认值:
- {}
-
-
-
before
String[] before
Relative ordering info, optional- 返回:
- extension list which should be put before the current one
- 默认值:
- {}
-
-
-
after
String[] after
Relative ordering info, optional- 返回:
- extension list which should be put after the current one
- 默认值:
- {}
-
-