注释类型 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:@Activatecan be used to load certainFilterextension 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.- 另请参阅:
SPI,URL,ExtensionLoader
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 String[]afterRelative ordering info, optionalString[]beforeRelative ordering info, optionalString[]groupActivate the current extension when one of the groups matches.intorderAbsolute ordering info, optionalString[]valueActivate 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 eithercacheorvalidationkey 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
- 默认值:
- {}
-
-