Package com.oracle.coherence.mp.config
Class CoherenceDefaultsConfigSource
- java.lang.Object
-
- com.oracle.coherence.mp.config.CoherenceDefaultsConfigSource
-
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSource
public class CoherenceDefaultsConfigSource extends Object implements org.eclipse.microprofile.config.spi.ConfigSource
A staticConfigSourceimplementation that overrides default Coherence configuration to:- Use
java.util.loggingas a logging destination - Use
com.oracle.coherenceas a logger name - Changes default message format to
(thread={thread}, member={member}, up={uptime}): {text}, in order to allowjava.util.loggingto control overall message formatting
ConfigSourcehas an ordinal of 0, so the default configuration values above will only be used if none of the higher priority configuration sources provides an override for a configuration property.- Since:
- 20.06
- Author:
- Aleks Seovic 2020.05.16
-
-
Constructor Summary
Constructors Constructor Description CoherenceDefaultsConfigSource()ConstructCoherenceDefaultsConfigSourceinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()intgetOrdinal()Map<String,String>getProperties()StringgetValue(String propertyName)
-
-
-
Method Detail
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getOrdinal
public int getOrdinal()
- Specified by:
getOrdinalin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getValue
public String getValue(String propertyName)
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
-