@Address(value="/subsystem=microprofile-config/config-source=*") public class ConfigSource<T extends ConfigSource<T>> extends Object implements org.wildfly.swarm.config.runtime.Keyed
| Constructor and Description |
|---|
ConfigSource(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Map |
attributeClass()
Class of the config source to load
|
T |
attributeClass(Map value)
Class of the config source to load
|
T |
attributeClass(String key,
Object value)
Class of the config source to load
|
String |
dir()
Directory that is scanned to config properties for this config source
(file names are key, file content are value)
|
T |
dir(String value)
Directory that is scanned to config properties for this config source
(file names are key, file content are value)
|
String |
getKey() |
Integer |
ordinal()
Ordinal value for the config source
|
T |
ordinal(Integer value)
Ordinal value for the config source
|
Map |
properties()
Properties configured for this config source
|
T |
properties(Map value)
Properties configured for this config source
|
T |
property(String key,
Object value)
Properties configured for this config source
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public ConfigSource(String key)
public String getKey()
getKey in interface org.wildfly.swarm.config.runtime.Keyedpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="class") public Map attributeClass()
@ModelNodeBinding(detypedName="dir") public String dir()
public T dir(String value)
@ModelNodeBinding(detypedName="ordinal") public Integer ordinal()
@ModelNodeBinding(detypedName="properties") public Map properties()
Copyright © 2018 JBoss by Red Hat. All rights reserved.