-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from DDS-GmbH/feature/dynamic-access
Add missing files
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/com/docutools/jocument/annotations/DynamicAccessPlaceholder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.docutools.jocument.annotations; | ||
|
||
import com.docutools.jocument.impl.models.MatchPlaceholderData; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.util.Locale; | ||
|
||
/** | ||
* Allows to define a regular expression pattern for a method to be resolved in a {@link com.docutools.jocument.impl.ReflectionResolver} if the | ||
* placeholder name passed to {@link com.docutools.jocument.impl.ReflectionResolver#resolve(String, Locale)} matches against the {@link | ||
* this#pattern()}. | ||
* | ||
* <p>Can be applied to a public method taking a {@link MatchPlaceholderData}, returning an {@link java.util.Optional} of {@link Object}. | ||
* | ||
* @author amp | ||
* @since 2022-03-01 | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface DynamicAccessPlaceholder { | ||
/** | ||
* A RegEx pattern. | ||
* | ||
* @return {@link String} | ||
*/ | ||
String pattern(); | ||
} |
Binary file not shown.