-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
425 additions
and
93 deletions.
There are no files selected for viewing
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
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
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
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
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
53 changes: 53 additions & 0 deletions
53
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigClassBuildItem.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,53 @@ | ||
package io.quarkus.arc.deployment; | ||
|
||
import java.util.Set; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
public final class ConfigClassBuildItem extends MultiBuildItem { | ||
private final Class<?> configClass; | ||
private final Set<String> generatedClasses; | ||
private final String prefix; | ||
private final Type type; | ||
|
||
public ConfigClassBuildItem( | ||
final Class<?> configClass, | ||
final Set<String> generatedClasses, | ||
final String prefix, | ||
final Type type) { | ||
|
||
this.configClass = configClass; | ||
this.generatedClasses = generatedClasses; | ||
this.prefix = prefix; | ||
this.type = type; | ||
} | ||
|
||
public Class<?> getConfigClass() { | ||
return configClass; | ||
} | ||
|
||
public Set<String> getGeneratedClasses() { | ||
return generatedClasses; | ||
} | ||
|
||
public String getPrefix() { | ||
return prefix; | ||
} | ||
|
||
public Type getType() { | ||
return type; | ||
} | ||
|
||
public boolean isMapping() { | ||
return Type.MAPPING.equals(type); | ||
} | ||
|
||
public boolean isProperties() { | ||
return Type.PROPERTIES.equals(type); | ||
} | ||
|
||
public enum Type { | ||
MAPPING, | ||
PROPERTIES; | ||
} | ||
} |
Oops, something went wrong.