Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOellerer committed May 22, 2024
1 parent 7bd6aed commit 2c56804
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
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.

0 comments on commit 2c56804

Please sign in to comment.