public class ChainedProperties extends Object implements Externalizable
org.kie.property.cache.enabled
that needs to be set to true
Cache entries are by default limited to 100 to reduce memory consumption but can be fine tuned by system property:org.kie.property.cache.size
that needs to be set to valid integer valueModifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected static Map<org.kie.internal.utils.ChainedProperties.CacheKey,List<URL>> |
resourceUrlCache |
Constructor and Description |
---|
ChainedProperties() |
ChainedProperties(String confFileName,
ClassLoader classLoader) |
ChainedProperties(String confFileName,
ClassLoader classLoader,
boolean populateDefaults) |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Properties properties)
Specifically added properties take priority, so they go to the front of the list.
|
String |
getProperty(String key,
String defaultValue) |
void |
mapStartsWith(Map<String,String> map,
String startsWith,
boolean includeSubProperties) |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public ChainedProperties()
public ChainedProperties(String confFileName, ClassLoader classLoader)
public ChainedProperties(String confFileName, ClassLoader classLoader, boolean populateDefaults)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void addProperties(Properties properties)
properties
- Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.