Module openj9.dtfj

Class ContextFactory


  • public class ContextFactory
    extends Object
    Factory for creating different types of contexts.
    • Method Detail

      • getContext

        public static IDTFJContext getContext​(int major,
                                              int minor,
                                              Image image,
                                              ImageAddressSpace space,
                                              ImageProcess process,
                                              JavaRuntime runtime)
        Create a DTFJ context.
        Parameters:
        major - DTFJ API major version to be supported
        minor - DTFJ minor version to be supported
        image - the source image for the context
        space - address space for this context (cannot be null)
        process - process in this address space
        runtime - Java runtime for this context (may be null)
        Returns:
        the context
      • getEmptyContext

        public static IDTFJContext getEmptyContext​(int major,
                                                   int minor)
        Create a stub DTFJ context which just contains the global commands.
        Parameters:
        major - DTFJ API major version to be supported
        minor - DTFJ minor version to be supported
        Returns:
        the context