class JDILoader extends Logging
Represents the loader for the JDI (Java Debugger Interface) library shipped with the Oracle JDK and Open JDK. Attempts to load the library from a classloader or searches for the library in common locations.
- Alphabetic
- By Inheritance
- JDILoader
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
JDILoader(_classLoader: ClassLoader = classOf[JDILoader].getClassLoader)
- _classLoader
The classloader to use in an attempt to load the JDI
Type Members
-
implicit
class
LoggerExtras
extends AnyRef
- Definition Classes
- Logging
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
classForName(name: String, initialize: Boolean = true, classLoader: ClassLoader = getSystemClassLoader): Class[_]
Attempts to load the specified class.
Attempts to load the specified class.
- name
The full name of the class to load
- initialize
If true, initializes the class
- classLoader
The class loader to use for loading the class, defaults to the system class loader
- returns
The class loaded by the class loader
- Attributes
- protected
- Annotations
- @throws( classOf[ClassNotFoundException] )
- Exceptions thrown
ClassNotFoundException
If the class was not found using the class loader or any of its parents- Note
Exposed for testing!
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findPotentialJdkJarPaths(jarPath: String): Seq[String]
Attempts to find potential paths for a jar in the JDK.
Attempts to find potential paths for a jar in the JDK.
- jarPath
The path to the jar relative to the JDK
- returns
The sequence of potential paths
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getSystemClassLoader: ClassLoader
Retrieves the class loader used by the JVM.
Retrieves the class loader used by the JVM.
- returns
The class loader used by default for the JVM system
- Attributes
- protected
- Note
Wraps ClassLoader.getSystemClassLoader(), used for testing.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isJdiAvailable(classLoader: ClassLoader = _classLoader): Boolean
Checks if it is possible to use the JDI using either the given class loader or by using a jar located in the JDK (if possible).
Checks if it is possible to use the JDI using either the given class loader or by using a jar located in the JDK (if possible).
- classLoader
The class loader to use to check for JDI (default is this class's class loader)
- returns
True if JDI is able to be loaded, otherwise false
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryLoadJdi(classLoader: ClassLoader = _classLoader): Boolean
Attempts to ensure that the JDI is loaded.
Attempts to ensure that the JDI is loaded. First, checks if the JDI is already available. If not, attempts to find a JDK path and load it.
- classLoader
The class loader to use to check for JDI (default is this class's class loader)
- returns
True if successful, otherwise false
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )