@FunctionalInterface public interface PropertySourceProvider
Implement this interfaces to provide a PropertySource provider which is able to register multiple PropertySources. This is e.g. needed if there are multiple property files of a given config file name.
If a PropertySource like JNDI only exists once, then there is no need
to implement it via the PropertySourceProvider but should directly
expose a PropertySource.
A PropertySourceProvider will current picked up via the
ServiceLoader mechanism and must current registered via
META-INF/services/org.apache.tamaya.spi.PropertySourceProvider
| Modifier and Type | Field | Description |
|---|---|---|
static PropertySourceProvider |
EMPTY |
A resusable instance of an empty PropertySource.
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection<PropertySource> |
getPropertySources() |
static final PropertySourceProvider EMPTY
Collection<PropertySource> getPropertySources()
Copyright © 2014–2019 Apache Software Foundation. All rights reserved.