pl.bristleback.server.bristle.config
Class ClassConfigurationUtil
java.lang.Object
pl.bristleback.server.bristle.config.ClassConfigurationUtil
public final class ClassConfigurationUtil
- extends java.lang.Object
This class provides functions which can be used in user implementations of resolvers of various configuration elements.
Created on: 2010-10-14 21:11:19
- Author:
- Wojciech Niemiec
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getClassConfigurationsFromSettingsMap
public static java.util.List<ClassConfiguration> getClassConfigurationsFromSettingsMap(java.lang.String settingPrefix,
java.util.Map<java.lang.String,java.lang.String> pluginSettings)
- Gets list of class elements taken from plugin settings with prefix given in constructor,
each bound in
ClassConfiguration class.
Special convention of names is used here, user should provide only name of setting property.
For example, to get message sender classes, name of property prefix is: 'messageSender'.
- Parameters:
settingPrefix - prefix first part of setting property.pluginSettings - map of settings from plugin configuration.
- Returns:
- list of class configuration.
getInstanceFromConfiguration
public static <T> T getInstanceFromConfiguration(java.lang.Class<T> type,
ClassConfiguration configuration)
Copyright © 2011. All Rights Reserved.