public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBaseDir(URL url,
String resourcePath)
Returns baseDir of the URL.
|
static Enumeration<URL> |
getManifests(ClassLoader cl)
Returns the MANIFEST.MF founded from the ClassLoader.
|
static Map<String,URL> |
getManifestsMap(ClassLoader cl)
Return a map of the whole MANIFEST.MF founded into the ClassPath.
|
static Enumeration<URL> |
getPluginXMLs(ClassLoader cl)
Returns the plugin.xml founded from the ClassLoader.
|
static boolean |
isEmpty(String value)
Checks if a String is empty ("") or null.
|
static Properties |
load(ClassLoader cl)
Load springclrfactory.properties from OSGi fragments linked to this
bundle..
|
public static Map<String,URL> getManifestsMap(ClassLoader cl)
cl - public static String getBaseDir(URL url, String resourcePath)
url - resourcePath - public static Enumeration<URL> getManifests(ClassLoader cl)
cl - public static Enumeration<URL> getPluginXMLs(ClassLoader cl)
cl - public static boolean isEmpty(String value)
Checks if a String is empty ("") or null.
value - the String to check, may be nulltrue if the String is empty or nullpublic static Properties load(ClassLoader cl)
cl - Copyright © 2020 Fraunhofer IWU. All rights reserved.