scalecube-config
scalecube-config copied to clipboard
ScaleCube Config is a configuration access management library for JVM based distributed applications
Try run this artificial example: ```java for(;;) { StringConfigProperty orderedProp1 = configRegistry.stringProperty("orderedProp1"); orderedProp1.addValidator(s -> true); orderedProp1.addCallback((s, s2) -> System.out.println(s)); } ``` Open jconsole and look at OldGen, it grows. The...
```java @Test public void testSomeFieldsReferToTheSamePropertyName() { when(configSource.loadConfig()).thenReturn(toConfigProps(mapBuilder().put("prop", "key=value").build())); ConfigRegistry configRegistry = newConfigRegistry(configSource); Map bindingMap = ImmutableMap.builder() .put("stringProperty", "prop") .put("stringListProperty", "prop") .put("stringMultimapProperty", "prop") .build(); OnePropertyRepresentation objectProperty = configRegistry.objectProperty(bindingMap, OnePropertyRepresentation.class).value().get(); assertEquals("key=value", objectProperty.stringProperty);...
Allow to set validation object config property class with [bean validation](http://beanvalidation.org/) annotations (`javax.validation:validation-api`). Consider next example: ```java MyConfig { @NotNull private String secretKey; @NotNull private String callbackUrl; @Email private String...
Currently the way you define the ObjectProperty is to provide some binding map that binds field names to property keys. Along with this approach we can support some annotation based...
Provide mechanism to get encrypted properties stored in some shared place which are decrypted on the specific server. One of the possible directions to investigate is to implement config source...
Updated dependencies, updated KubernetesVaultTokenSupplier, added VaultClientTokenSupplier