Class Utils


  • public class Utils
    extends Object
    Utilities.
    • Constructor Detail

      • Utils

        public Utils()
    • 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:
        true if 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: