Module openj9.dtfj

Class LibraryResolverFactory


  • public class LibraryResolverFactory
    extends Object
    Static factory for ILibraryResolvers. Encapsulates the knowledge of where to look for libraries.
    • Field Detail

      • PATH_MAPPING_SYSTEM_PROPERTY

        public static final String PATH_MAPPING_SYSTEM_PROPERTY
        This property sets a path that can be used to re-map library paths on the system the core was generated to paths on the local machine. For example allowing you to use a core generated on AIX with the same build downloaded to a Windows machine from Espresso. You can get the exact build id from core files in jdmpview by running "info system" The output of "info system" should contain a line like: Java(TM) SE Runtime Environment(build JRE 1.6.0 AIX ppc64-64 build 20101125_69326 (pap6460_26-20101129_04)) where pap6460_26-20101129_04 is the build id identifying the build on Espresso or JIM. Paths can be substituted as: -Dcom.ibm.j9ddr.path.mapping=original/path/1=new/path/1:original/path/2=new/path/2 (Note that : or ; is used to separate paths according to the platforms setting of of File.pathSeparator. = is used to separate multiple pairs of mappings.)
        See Also:
        Constant Field Values
    • Constructor Detail

      • LibraryResolverFactory

        public LibraryResolverFactory()
    • Method Detail

      • getResolverForCoreFile

        public static ILibraryResolver getResolverForCoreFile​(ImageInputStream stream)
        Static factory for ILibraryResolvers.
        Parameters:
        stream - Core file whose libraries need resolving
        Returns:
        ILibraryResolver
      • getResolverForCoreFile

        public static ILibraryResolver getResolverForCoreFile​(File file)
        Static factory for ILibraryResolvers.
        Parameters:
        stream - Core file whose libraries need resolving
        Returns:
        ILibraryResolver