public class OsgiUtils extends Object
Constructor and Description |
---|
OsgiUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String value)
Encode the value for the ldap filter: \, *, (, and ) should be escaped.
|
static <K,V> Map<K,V> |
fromDictionary(Dictionary<K,V> dictionary)
Transform a Dictionary into a Map
|
static String |
getFilter(String configFactory,
String propertyName,
String propertyValue)
Create a filter for selecting configs of a certain factory
|
static String |
osgiPropertyMapToString(Map<String,Object> map)
Used to serialize a map for logging purposes
|
static Map<String,Object> |
sanitize(Map<String,Object> map)
Filter out object types that are not compatible with osgi configs
|
static <K,V> Dictionary<K,V> |
toDictionary(Map<K,V> map)
Transform a Map into a Dictionary
|
public static String escape(String value)
public static String osgiPropertyMapToString(Map<String,Object> map)
public static String getFilter(String configFactory, String propertyName, String propertyValue)
public static <K,V> Map<K,V> fromDictionary(Dictionary<K,V> dictionary)
public static <K,V> Dictionary<K,V> toDictionary(Map<K,V> map)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.