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 get picked up via the
ServiceLoader
mechanism and must get registered via
META-INF/services/org.apache.tamaya.spi.PropertySourceProvider
Modifier and Type | Field and Description |
---|---|
static PropertySourceProvider |
EMPTY
A resusable instance of an empty PropertySource.
|
Modifier and Type | Method and Description |
---|---|
Collection<PropertySource> |
getPropertySources() |
static final PropertySourceProvider EMPTY
Collection<PropertySource> getPropertySources()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.