Class Utils
- java.lang.Object
-
- net.enilink.commons.util.internal.extensions.Utils
-
public class Utils extends Object
Utilities.
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBaseDir(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 booleanisEmpty(String value)Checks if a String is empty ("") or null.static Propertiesload(ClassLoader cl)Load springclrfactory.properties from OSGi fragments linked to this bundle..
-
-
-
Method Detail
-
getManifestsMap
public static Map<String,URL> getManifestsMap(ClassLoader cl)
Return a map of the whole MANIFEST.MF founded into the ClassPath. The key map is the baseDir of the URI of the MANIFEST.MF file.- Parameters:
cl-- Returns:
-
getBaseDir
public static String getBaseDir(URL url, String resourcePath)
Returns baseDir of the URL.- Parameters:
url-resourcePath-- Returns:
-
getManifests
public static Enumeration<URL> getManifests(ClassLoader cl)
Returns the MANIFEST.MF founded from the ClassLoader.- Parameters:
cl-- Returns:
-
getPluginXMLs
public static Enumeration<URL> getPluginXMLs(ClassLoader cl)
Returns the plugin.xml founded from the ClassLoader.- Parameters:
cl-- Returns:
-
isEmpty
public static boolean isEmpty(String value)
Checks if a String is empty ("") or null.
- Parameters:
value- the String to check, may be null- Returns:
trueif the String is empty or null
-
load
public static Properties load(ClassLoader cl)
Load springclrfactory.properties from OSGi fragments linked to this bundle..- Parameters:
cl-- Returns:
-
-