Skip to content

Commit

Permalink
Configuration mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed May 11, 2020
1 parent f25b489 commit 974957e
Show file tree
Hide file tree
Showing 21 changed files with 2,779 additions and 0 deletions.
48 changes: 48 additions & 0 deletions mapper/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
</parent>

<artifactId>smallrye-config-mapper</artifactId>

<name>SmallRye: Configuration Mapper</name>
<description>A configuration-to-object mapping utility</description>

<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-constraint</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
</plugins>
</build>
</project>
23 changes: 23 additions & 0 deletions mapper/src/main/java/io/smallrye/config/mapper/CompareWith.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.smallrye.config.mapper;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Comparator;

/**
* Specify the comparator to use to compare the annotated type for range.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE_USE)
public @interface CompareWith {
/**
* The comparator class to use.
*
* @return the comparator class
*/
Class<? extends Comparator<?>> value();
}
631 changes: 631 additions & 0 deletions mapper/src/main/java/io/smallrye/config/mapper/ConfigMapping.java

Large diffs are not rendered by default.

Loading

0 comments on commit 974957e

Please sign in to comment.