-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
I want to use hystrix (1.4.20) without the dependency to archaius. My goal is to not having to deploy the archaius-core.jar with my application as I dont want to deal with its depencies (like commons-lang etc.). As documented in the wiki, this should be possible by implementing a custom HystrixPropertiesStrategy and registering it by calling HystrixPlugins.getInstance().registerPropertiesStrategy(). Unfortunately, HystrixPlugins has a compile depency to archaius (ConfigurationManager) in the constructor:
private HystrixPlugins() {
try {
// Load configuration from hystrix-plugins.properties, if that file exists
ConfigurationManager.loadCascadedPropertiesFromResources("hystrix-plugins");
} catch (IOException e) {
// fail silently
}
}How I can use my custom HystrixPropertiesStrategy without having to deploy archaius-core.jar?