Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.util
Class ChainedProperties

    java.lang.Object
      org.drools.util.ChainedProperties

All Implemented Interfaces:
  Externalizable, Serializable

    public class ChainedProperties

extends Object
implements Externalizable

Priority System properties, home directory, working directory, META-INF/ of optionally provided classLoader META-INF/ of Thread.currentThread().getContextClassLoader() and META-INF/ of ClassLoader.getSystemClassLoader()

See Also:
  Serialized Form

Constructor Summary
`ChainedProperties()`
`ChainedProperties(String confFileName, ClassLoader classLoader)`
`ChainedProperties(String confFileName, ClassLoader classLoader, boolean populateDefaults)`

Method Summary
`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)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ChainedProperties

    public ChainedProperties()

### ChainedProperties

    public ChainedProperties(String confFileName,
                             ClassLoader classLoader)

### ChainedProperties

    public ChainedProperties(String confFileName,
                             ClassLoader classLoader,
                             boolean populateDefaults)

Method Detail

### readExternal

    public void readExternal(ObjectInput in)
                      throws IOException,
                             ClassNotFoundException

  Specified by:
    `readExternal` in interface `Externalizable`
  Throws:
    `IOException`
    `ClassNotFoundException`

### writeExternal

    public void writeExternal(ObjectOutput out)
                       throws IOException

  Specified by:
    `writeExternal` in interface `Externalizable`
  Throws:
    `IOException`

### addProperties

    public void addProperties(Properties properties)

  Specifically added properties take priority, so they go to the front of the list.

  Parameters:
    `properties` -

### getProperty

    public String getProperty(String key,
                              String defaultValue)

### mapStartsWith

    public void mapStartsWith(Map<String,String> map,
                              String startsWith,
                              boolean includeSubProperties)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.