cancel
Showing results for 
Search instead for 
Did you mean: 

ConfigurationService

Eric_Ace
Confirmed Champ
Confirmed Champ

I am using the ConfigurationService to define properties that modify the behavior of code I am contributing. One such property is enabled for a piece of functionality. If - at runtime - the code detects some downstream dependency is unavailable, I would like to set the property to disabled. E.g. the component can't complete a task, so it turns itself off. But the ConfigurationService only offers get functionality, not set functionality. I could override the ConfigurationService-provided values with Java a Property but that would necessitate first checking the Java Property then checking the ConfigurationService property. Is there is recommended best practice here?

1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

The ConfigurationService is designed to read configuration only, not to write it.

Writing configuration is fraught with peril. Consider what would happen in cluster, when there are several Nuxeo instances running; how would that work?

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.