Skip to content

Commit

Permalink
Merge pull request #251 from DDS-GmbH/feature/dynamic-access
Browse files Browse the repository at this point in the history
Add missing files
  • Loading branch information
AntonOellerer authored May 22, 2024
2 parents 4ae1019 + 2c56804 commit 4ca7bd1
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 4ca7bd1

Please sign in to comment.