- java.lang.Object
-
- com.ibm.java.diagnostics.utils.ContextFactory
-
public class ContextFactory extends Object
Factory for creating different types of contexts.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IDTFJContext
getContext(int major, int minor, Image image, ImageAddressSpace space, ImageProcess process, JavaRuntime runtime)
Create a DTFJ context.static IDTFJContext
getEmptyContext(int major, int minor)
Create a stub DTFJ context which just contains the global commands.
-
-
-
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 supportedminor
- DTFJ minor version to be supportedimage
- the source image for the contextspace
- address space for this context (cannot be null)process
- process in this address spaceruntime
- 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 supportedminor
- DTFJ minor version to be supported- Returns:
- the context
-
-