Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: module cleanup #6

Merged
merged 17 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java/.mvn/settings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<offline>false</offline>

<pluginGroups>
Expand Down
15 changes: 11 additions & 4 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.amido.stacks.modules</groupId>
<artifactId>stacks-modules-parent</artifactId>
<version>0.0.18-main</version>
<version>0.0.21-main</version>
</parent>

<artifactId>stacks-core-commons</artifactId>
Expand All @@ -25,12 +25,19 @@
</repositories>

<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-spring-boot-starter</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-logging-logback</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ public abstract class OperationContext {

private String correlationId;

public OperationContext(String correlationId) {
protected OperationContext(final String correlationId) {
this.correlationId = correlationId;
}

public abstract int getOperationCode();

/** No arg constructor. */
public OperationContext() {}
protected OperationContext() {
// NO-OP
}

public String getCorrelationId() {
return correlationId;
}

public void setCorrelationId(String correlationId) {
public void setCorrelationId(final String correlationId) {
this.correlationId = correlationId;
}

@Override
public String toString() {
return "OperationContext{"
+ "operationCode="
+ getOperationCode()
+ ", correlationId="
+ correlationId
+ '}';
return String.format(
"OperationContext{operationCode=%d, correlationId=%s}", getOperationCode(), correlationId);
}
}