JavaLessons/camel-testing/src/main/java/me/bvn13/lesson/camel/testing/cameltesting/PropertyProviderImpl.java

33 lines
798 B
Java
Raw Normal View History

2021-11-23 14:10:35 +03:00
package me.bvn13.lesson.camel.testing.cameltesting;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
@Component
@Profile("!test")
public class PropertyProviderImpl implements PropertiesProvider {
2022-08-11 10:38:05 +03:00
@Value("${app.input.folder:/tmp/in}")
2021-11-23 14:10:35 +03:00
private String inputFolder;
2022-08-11 10:38:05 +03:00
@Value("${app.output.folder:/tmp/out}")
2021-11-23 14:10:35 +03:00
private String outputFolder;
@Override
public String getInputEndpoint() {
return "file:" + inputFolder;
}
@Override
public String getOutputEndpoint() {
return "file:" + outputFolder;
}
@Override
public String getSupervisorEndpoint() {
2021-12-19 19:15:00 +03:00
return "http://localhost:8080/supervisor?httpMethod=POST";
2021-11-23 14:10:35 +03:00
}
}