Class ManifestClassPathUtils


  • public class ManifestClassPathUtils
    extends java.lang.Object
    Utilities to assist with processing manifest classpaths
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addCompleteJarEntryUrls​(java.util.List<ContainerInfo> containers, com.ibm.wsspi.adaptable.module.Entry jarEntry, java.util.Collection<java.lang.String> resolved)
      Add the jar entry URLs and its class path URLs.
      static java.lang.String createEntryIdentity​(com.ibm.wsspi.adaptable.module.Entry entry)
      create an Entry Identity that can identify an entry in an ear/war archive This is used to avoid the cross reference in jar files' Class-Path causing the non-stopping recursion
      static void processMFClasspath​(com.ibm.wsspi.adaptable.module.Entry jarEntry, java.util.List<ContainerInfo> containers, java.util.Collection<java.lang.String> resolved)  
      static void processMFClasspath​(com.ibm.wsspi.adaptable.module.Entry jarEntry, java.util.List<ContainerInfo> containers, java.util.Collection<java.lang.String> resolved, boolean addRoot)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManifestClassPathUtils

        public ManifestClassPathUtils()
    • Method Detail

      • createEntryIdentity

        public static java.lang.String createEntryIdentity​(com.ibm.wsspi.adaptable.module.Entry entry)
                                                    throws com.ibm.wsspi.adaptable.module.UnableToAdaptException
        create an Entry Identity that can identify an entry in an ear/war archive This is used to avoid the cross reference in jar files' Class-Path causing the non-stopping recursion
        Parameters:
        entry -
        Returns:
        Throws:
        com.ibm.wsspi.adaptable.module.UnableToAdaptException
      • processMFClasspath

        public static void processMFClasspath​(com.ibm.wsspi.adaptable.module.Entry jarEntry,
                                              java.util.List<ContainerInfo> containers,
                                              java.util.Collection<java.lang.String> resolved)
                                       throws com.ibm.wsspi.adaptable.module.UnableToAdaptException
        Throws:
        com.ibm.wsspi.adaptable.module.UnableToAdaptException
      • processMFClasspath

        public static void processMFClasspath​(com.ibm.wsspi.adaptable.module.Entry jarEntry,
                                              java.util.List<ContainerInfo> containers,
                                              java.util.Collection<java.lang.String> resolved,
                                              boolean addRoot)
                                       throws com.ibm.wsspi.adaptable.module.UnableToAdaptException
        Throws:
        com.ibm.wsspi.adaptable.module.UnableToAdaptException
      • addCompleteJarEntryUrls

        public static void addCompleteJarEntryUrls​(java.util.List<ContainerInfo> containers,
                                                   com.ibm.wsspi.adaptable.module.Entry jarEntry,
                                                   java.util.Collection<java.lang.String> resolved)
                                            throws com.ibm.wsspi.adaptable.module.UnableToAdaptException
        Add the jar entry URLs and its class path URLs. We need deal with all the thrown exceptions so that it won't interrupt the caller's processing.
        Parameters:
        urls -
        jarEntry -
        Throws:
        com.ibm.wsspi.adaptable.module.UnableToAdaptException