Skip to content

Hystrix without Archaius #970

@tine2k

Description

@tine2k

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions