注释类型 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
-
-
元素详细资料
-
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
@Deprecated String[] before
已过时。Relative ordering info, optional Deprecated since 2.7.0- 返回:
- extension list which should be put before the current one
- 默认值:
- {}
-
-
-
after
@Deprecated String[] after
已过时。Relative ordering info, optional Deprecated since 2.7.0- 返回:
- extension list which should be put after the current one
- 默认值:
- {}
-
-