public class AxonFrameworkVersionResolver extends Object implements Supplier<String>
At first it looks for the version in the Meta Data of the maven artifact. As a fallback it looks for the version in the environment variables.
Constructor and Description |
---|
AxonFrameworkVersionResolver()
Creates an instance that uses a
MavenArtifactVersionResolver to resolve the Axon Server Connector jar
version, and System.getenv(String) to resolve the AXON_FRAMEWORK_VERSION environment property as a
fallback. |
Modifier and Type | Method and Description |
---|---|
String |
get()
Provides the current Axon Framework version, and cache it in memory during the first call.
|
public AxonFrameworkVersionResolver()
MavenArtifactVersionResolver
to resolve the Axon Server Connector jar
version, and System.getenv(String)
to resolve the AXON_FRAMEWORK_VERSION environment property as a
fallback.Copyright © 2010–2020. All rights reserved.