-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smallrye-parent 39 and some dependency alignment
- Loading branch information
Showing
211 changed files
with
382 additions
and
364 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
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 |
---|---|---|
|
@@ -46,7 +46,7 @@ | |
|
||
/** | ||
* Class helper | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class Classes { | ||
|
@@ -60,7 +60,7 @@ public static boolean isWrapper(Type type) { | |
|
||
/** | ||
* Check if this is a Parameterized type | ||
* | ||
* | ||
* @param type | ||
* @return | ||
*/ | ||
|
@@ -70,7 +70,7 @@ public static boolean isParameterized(Type type) { | |
|
||
/** | ||
* Check if a certain type is Optional | ||
* | ||
* | ||
* @param type the type | ||
* @return true if it is | ||
*/ | ||
|
@@ -83,7 +83,7 @@ public static boolean isOptional(Type type) { | |
|
||
/** | ||
* Check if a certain class is an interface | ||
* | ||
* | ||
* @param classInfo the class to check | ||
* @return true if it is | ||
*/ | ||
|
@@ -95,7 +95,7 @@ public static boolean isInterface(ClassInfo classInfo) { | |
|
||
/** | ||
* Check if a certain class is an enum | ||
* | ||
* | ||
* @param classInfo the class to check | ||
* @return true if it is | ||
*/ | ||
|
@@ -107,7 +107,7 @@ public static boolean isEnum(ClassInfo classInfo) { | |
|
||
/** | ||
* Check if this type is a Number (or collection of numbers) | ||
* | ||
* | ||
* @param type the type to check | ||
* @return true if it is | ||
*/ | ||
|
@@ -119,7 +119,7 @@ public static boolean isNumberLikeTypeOrContainedIn(Type type) { | |
|
||
/** | ||
* Check if this type is a Date (or collection of numbers) | ||
* | ||
* | ||
* @param type the type to check | ||
* @return true if it is | ||
*/ | ||
|
@@ -159,7 +159,7 @@ private static boolean isAsyncType(Type type) { | |
|
||
/** | ||
* Return true if type is java array, or it is Collection type which is handled as GraphQL array | ||
* | ||
* | ||
* @param type to check | ||
* @return if this is a collection or array | ||
*/ | ||
|
@@ -170,7 +170,7 @@ public static boolean isCollectionOrArray(Type type) { | |
|
||
/** | ||
* Return true if this is an array | ||
* | ||
* | ||
* @param type | ||
* @return | ||
*/ | ||
|
@@ -180,7 +180,7 @@ public static boolean isArray(Type type) { | |
|
||
/** | ||
* Return true if type is java Collection type which is handled as GraphQL array | ||
* | ||
* | ||
* @param type to check | ||
* @return if this is a collection | ||
*/ | ||
|
@@ -243,7 +243,7 @@ public static boolean isMap(Type type) { | |
/** | ||
* Return true if given type is parametrized type unwrapped/handled by the runtime before the serialization | ||
* (Optional<>, CompletableFutur<>, CompletionStage<> etc) | ||
* | ||
* | ||
* @param type to be checked | ||
* @return true if type is unwrapped by the runtime | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* A simple registry to hold the current scanning info | ||
* | ||
* At this point we only keep the index in the context | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class ScanningContext { | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* Runtime exception when we could not create a type (input or output) while building the schema | ||
* or the schema itself | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class SchemaBuilderException extends RuntimeException { | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
|
||
/** | ||
* Abstract creator | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public abstract class ModelCreator { | ||
|
@@ -44,7 +44,7 @@ public TypeAutoNameStrategy getTypeAutoNameStrategy() { | |
|
||
/** | ||
* The the return type.This is usually the method return type, but can also be adapted to something else | ||
* | ||
* | ||
* @param methodInfo method | ||
* @return the return type | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -12,9 +12,9 @@ | |
|
||
/** | ||
* Helper with detecting if this field is in a wrapper | ||
* | ||
* | ||
* If it is we create an WrapperInfo model that contains the relevant information | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class WrapperCreator { | ||
|
@@ -28,7 +28,7 @@ public static Optional<Wrapper> createWrapper(Type type) { | |
|
||
/** | ||
* Create a Wrapper for a Field (that has properties and methods) | ||
* | ||
* | ||
* @param fieldType the java field type | ||
* @param methodType the java method type | ||
* @return optional array | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
/** | ||
* Something that can create object types on the schema | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
* @param <T> the created type | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
|
||
/** | ||
* This create an Enum Type. | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class EnumCreator implements Creator<EnumType> { | ||
|
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* | ||
* The input object has fields that might reference other types | ||
* that should still be created. | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class InputTypeCreator implements Creator<InputType> { | ||
|
@@ -87,7 +87,7 @@ public boolean hasUseableConstructor(ClassInfo classInfo) { | |
* Returns a constructor or factory method to create instances of this class. | ||
* | ||
* Could either be the default constructor or any constructor or static method annotated with {@code @JsonbCreator} | ||
* | ||
* | ||
* @param classInfo the class whose creator is to be found | ||
* @return the creator, null, if no public constructor or factory method is found | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
|
||
/** | ||
* Helping with mapping of scalars | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class AdaptToHelper { | ||
|
@@ -32,7 +32,7 @@ public static boolean shouldCreateTypeInSchema(Annotations annotations) { | |
|
||
/** | ||
* Get the adaptTo for a certain field (if any) | ||
* | ||
* | ||
* @param field | ||
* @param annotations the annotations | ||
* @return Potentially an AdaptTo model | ||
|
@@ -43,7 +43,7 @@ public static Optional<AdaptTo> getAdaptTo(Field field, Annotations annotations) | |
|
||
/** | ||
* Get the adapt to for a certain reference. | ||
* | ||
* | ||
* @param r | ||
* @param annotations the annotations | ||
* @return Potentially a AdaptTo model | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
/** | ||
* Helping with object adapters. | ||
* This adds support for Adapting one type to another. | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class AdaptWithHelper { | ||
|
@@ -35,7 +35,7 @@ public static boolean shouldCreateTypeInSchema(Annotations annotations) { | |
|
||
/** | ||
* Get the adaptWith for a certain field (if any) | ||
* | ||
* | ||
* @param direction | ||
* @param referenceCreator | ||
* @param field | ||
|
@@ -49,7 +49,7 @@ public static Optional<AdaptWith> getAdaptWith(Direction direction, ReferenceCre | |
|
||
/** | ||
* Get the adapt with for a certain reference. | ||
* | ||
* | ||
* @param direction | ||
* @param referenceCreator | ||
* @param r | ||
|
@@ -106,7 +106,7 @@ public static Optional<AdaptWith> getAdaptWith(Direction direction, ReferenceCre | |
|
||
/** | ||
* Get the adapt with for a certain reference. | ||
* | ||
* | ||
* @param direction | ||
* @param referenceCreator | ||
* @param r | ||
|
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 |
---|---|---|
|
@@ -7,14 +7,14 @@ | |
/** | ||
* Helping to figure out if there is a default value. | ||
* Looking for the @DefaultValue annotation. | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class DefaultValueHelper { | ||
|
||
/** | ||
* Find a default object in the annotation, or empty if nothing | ||
* | ||
* | ||
* @param annotations the annotations to search in | ||
* @return a optional default object | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
/** | ||
* Helper to get the correct Description. | ||
* Basically looking for the @Description annotation. | ||
* | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
public class DescriptionHelper { | ||
|
@@ -20,7 +20,7 @@ private DescriptionHelper() { | |
|
||
/** | ||
* Get the Description on a field or argument | ||
* | ||
* | ||
* @param annotations the annotations for that field/argument | ||
* @param type the java type (some types have default values) | ||
* @return the optional description | ||
|
@@ -53,7 +53,7 @@ public static Optional<String> getDescriptionForField(Annotations annotations, T | |
|
||
/** | ||
* Get the description on a class type | ||
* | ||
* | ||
* @param annotations annotation on the class | ||
* @return the optional description | ||
*/ | ||
|
Oops, something went wrong.