Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.pbm.ampl.configuration;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* The PomConfiguration class is a Spring Component which reads and provides POM properties to the API.
*
* @author Ian Meinert
*
*/
@Component
public class PomConfiguration {
@Value("${spring.application.name}")
private String name;
@Value("${spring.application.version}")
private String buildVersion;
@Value("${spring.profiles.active}")
private String profile;
/**
* The getter for the profile.
*
* @return the profile
*/
public String getProfile() {
return profile;
}
/**
* The setter for the profile.
*
* @param profile the profile that is active
*/
public void setProfile(String profile) {
this.profile = profile;
}
/**
* the getter for the buildVersion.
*
* @return the application build version
*/
public String getBuildVersion() {
return buildVersion;
}
/**
* The setter for the buildVersion.
*
* @param buildVersion the build version of the application
*/
public void setBuildVersion(String buildVersion) {
this.buildVersion = buildVersion;
}
/**
* The getter for the name.
*
* @return the application name
*/
public String getName() {
return name;
}
/**
* The setter for the name.
*
* @param name the application name
*/
public void setName(String name) {
this.name = name;
}
}