-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from jfdenise/main
Generic Annotation value handling and Support for DataSourceDefinition
- Loading branch information
Showing
15 changed files
with
340 additions
and
24 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
core/src/main/java/org/wildfly/glow/AnnotationFieldValue.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,52 @@ | ||
/* | ||
* Copyright The WildFly Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package org.wildfly.glow; | ||
|
||
/** | ||
* | ||
* @author jdenise | ||
*/ | ||
public class AnnotationFieldValue { | ||
|
||
private final String annotation; | ||
private final String fieldName; | ||
private final String fieldValue; | ||
private final Layer layer; | ||
|
||
public AnnotationFieldValue(String annotation, String fieldName, String fieldValue, Layer layer) { | ||
this.annotation = annotation; | ||
this.fieldName = fieldName; | ||
this.fieldValue = fieldValue; | ||
this.layer = layer; | ||
} | ||
|
||
/** | ||
* @return the annotation | ||
*/ | ||
public String getAnnotation() { | ||
return annotation; | ||
} | ||
|
||
/** | ||
* @return the fieldName | ||
*/ | ||
public String getFieldName() { | ||
return fieldName; | ||
} | ||
|
||
/** | ||
* @return the fieldValue | ||
*/ | ||
public String getFieldValue() { | ||
return fieldValue; | ||
} | ||
|
||
/** | ||
* @return the layer | ||
*/ | ||
public Layer getLayer() { | ||
return layer; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
core/src/main/java/org/wildfly/glow/DataSourceDefinitionInfo.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,47 @@ | ||
/* | ||
* Copyright The WildFly Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package org.wildfly.glow; | ||
|
||
|
||
public class DataSourceDefinitionInfo { | ||
private final String name; | ||
private final String url; | ||
private final String className; | ||
private final Layer driverLayer; | ||
public DataSourceDefinitionInfo(String name, String url, String className, Layer driverLayer) { | ||
this.name = name; | ||
this.url = url; | ||
this.className = className; | ||
this.driverLayer = driverLayer; | ||
} | ||
|
||
/** | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* @return the url | ||
*/ | ||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
/** | ||
* @return the className | ||
*/ | ||
public String getClassName() { | ||
return className; | ||
} | ||
|
||
/** | ||
* @return the driverLayer | ||
*/ | ||
public Layer getDriverLayer() { | ||
return driverLayer; | ||
} | ||
} |
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
Oops, something went wrong.