|
49 | 49 | @API(status = STABLE, since = "5.0")
|
50 | 50 | public final class Constants {
|
51 | 51 |
|
| 52 | + /** |
| 53 | + * Property name used to include patterns for auto-detecting extensions: {@value} |
| 54 | + * |
| 55 | + * <h4>Pattern Matching Syntax</h4> |
| 56 | + * |
| 57 | + * <p>If the property value consists solely of an asterisk ({@code *}), all |
| 58 | + * extensions will be included. Otherwise, the property value will be treated |
| 59 | + * as a comma-separated list of patterns where each individual pattern will be |
| 60 | + * matched against the fully qualified class name (<em>FQCN</em>) of each extension. |
| 61 | + * Any dot ({@code .}) in a pattern will match against a dot ({@code .}) |
| 62 | + * or a dollar sign ({@code $}) in a FQCN. Any asterisk ({@code *}) will match |
| 63 | + * against one or more characters in a FQCN. All other characters in a pattern |
| 64 | + * will be matched one-to-one against a FQCN. |
| 65 | + * |
| 66 | + * <h4>Examples</h4> |
| 67 | + * |
| 68 | + * <ul> |
| 69 | + * <li>{@code *}: includes all extensions. |
| 70 | + * <li>{@code org.junit.*}: includes every extension under the {@code org.junit} |
| 71 | + * base package and any of its subpackages. |
| 72 | + * <li>{@code *.MyExtension}: includes every extension whose simple class name is |
| 73 | + * exactly {@code MyExtension}. |
| 74 | + * <li>{@code *System*}: includes every extension whose FQCN contains |
| 75 | + * {@code System}. |
| 76 | + * <li>{@code *System*, *Dev*}: includes every extension whose FQCN contains |
| 77 | + * {@code System} or {@code Dev}. |
| 78 | + * <li>{@code org.example.MyExtension, org.example.TheirExtension}: includes |
| 79 | + * extensions whose FQCN is exactly {@code org.example.MyExtension} or |
| 80 | + * {@code org.example.TheirExtension}. |
| 81 | + * </ul> |
| 82 | + * |
| 83 | + * <p>Note: A class that matches both an inclusion and exclusion pattern will be excluded. |
| 84 | + * |
| 85 | + * @see JupiterConfiguration#EXTENSIONS_AUTODETECTION_INCLUDE_PROPERTY_NAME |
| 86 | + */ |
| 87 | + public static final String EXTENSIONS_AUTODETECTION_INCLUDE_PROPERTY_NAME = JupiterConfiguration.EXTENSIONS_AUTODETECTION_INCLUDE_PROPERTY_NAME; |
| 88 | + |
| 89 | + /** |
| 90 | + * Property name used to exclude patterns for auto-detecting extensions: {@value} |
| 91 | + * |
| 92 | + * <h4>Pattern Matching Syntax</h4> |
| 93 | + * |
| 94 | + * <p>If the property value consists solely of an asterisk ({@code *}), all |
| 95 | + * extensions will be excluded. Otherwise, the property value will be treated |
| 96 | + * as a comma-separated list of patterns where each individual pattern will be |
| 97 | + * matched against the fully qualified class name (<em>FQCN</em>) of each extension. |
| 98 | + * Any dot ({@code .}) in a pattern will match against a dot ({@code .}) |
| 99 | + * or a dollar sign ({@code $}) in a FQCN. Any asterisk ({@code *}) will match |
| 100 | + * against one or more characters in a FQCN. All other characters in a pattern |
| 101 | + * will be matched one-to-one against a FQCN. |
| 102 | + * |
| 103 | + * <h4>Examples</h4> |
| 104 | + * |
| 105 | + * <ul> |
| 106 | + * <li>{@code *}: excludes all extensions. |
| 107 | + * <li>{@code org.junit.*}: excludes every extension under the {@code org.junit} |
| 108 | + * base package and any of its subpackages. |
| 109 | + * <li>{@code *.MyExtension}: excludes every extension whose simple class name is |
| 110 | + * exactly {@code MyExtension}. |
| 111 | + * <li>{@code *System*}: excludes every extension whose FQCN contains |
| 112 | + * {@code System}. |
| 113 | + * <li>{@code *System*, *Dev*}: excludes every extension whose FQCN contains |
| 114 | + * {@code System} or {@code Dev}. |
| 115 | + * <li>{@code org.example.MyExtension, org.example.TheirExtension}: excludes |
| 116 | + * extensions whose FQCN is exactly {@code org.example.MyExtension} or |
| 117 | + * {@code org.example.TheirExtension}. |
| 118 | + * </ul> |
| 119 | + * |
| 120 | + * <p>Note: A class that matches both an inclusion and exclusion pattern will be excluded. |
| 121 | + * |
| 122 | + * @see JupiterConfiguration#EXTENSIONS_AUTODETECTION_EXCLUDE_PROPERTY_NAME |
| 123 | + */ |
| 124 | + public static final String EXTENSIONS_AUTODETECTION_EXCLUDE_PROPERTY_NAME = JupiterConfiguration.EXTENSIONS_AUTODETECTION_EXCLUDE_PROPERTY_NAME; |
| 125 | + |
52 | 126 | /**
|
53 | 127 | * Property name used to provide patterns for deactivating conditions: {@value}
|
54 | 128 | *
|
|
0 commit comments