Package org.jacoco.core.runtime
Class AbstractRuntime
- java.lang.Object
-
- org.jacoco.core.runtime.AbstractRuntime
-
- All Implemented Interfaces:
IExecutionDataAccessorGenerator
,IRuntime
- Direct Known Subclasses:
InjectedClassRuntime
,LoggerRuntime
,ModifiedSystemClassRuntime
,SystemPropertiesRuntime
,URLStreamHandlerRuntime
public abstract class AbstractRuntime extends java.lang.Object implements IRuntime
BaseIRuntime
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected RuntimeData
data
access to the runtime dataprivate static java.util.Random
RANDOM
-
Constructor Summary
Constructors Constructor Description AbstractRuntime()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createRandomId()
Creates a random session identifier.void
startup(RuntimeData data)
Subclasses must call this method when overwriting it.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jacoco.core.runtime.IExecutionDataAccessorGenerator
generateDataAccessor
-
-
-
-
Field Detail
-
data
protected RuntimeData data
access to the runtime data
-
RANDOM
private static final java.util.Random RANDOM
-
-
Method Detail
-
startup
public void startup(RuntimeData data) throws java.lang.Exception
Subclasses must call this method when overwriting it.
-
createRandomId
public static java.lang.String createRandomId()
Creates a random session identifier.- Returns:
- random session identifier
-
-