Modifier | Constructor and Description |
---|---|
protected |
JenkinsJVM()
Protect against people instantiating this class.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkJenkinsJVM()
Verify that the classloader that loaded this class is the classloader from which
Jenkins has been
started. |
static void |
checkNotJenkinsJVM()
Verify that the classloader that loaded this class is not the classloader from which
Jenkins has been
started. |
static boolean |
isJenkinsJVM()
Identify whether the classloader that loaded this class is the classloader from which
Jenkins has been
started. |
protected static void |
setJenkinsJVM(boolean jenkinsJVM)
Used by
WebAppMain.contextInitialized(ServletContextEvent) and
WebAppMain.contextDestroyed(ServletContextEvent) to identify the classloader and JVM which started
Jenkins |
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) protected JenkinsJVM()
public static boolean isJenkinsJVM()
Jenkins
has been
started.true
if this is the classloader on the JVM that started Jenkins
otherwise false
public static void checkJenkinsJVM()
Jenkins
has been
started.IllegalStateException
- if this is not the classloader on the JVM that started Jenkins
.public static void checkNotJenkinsJVM()
Jenkins
has been
started.IllegalStateException
- if this is the classloader on the JVM that started Jenkins
.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) protected static void setJenkinsJVM(boolean jenkinsJVM)
WebAppMain.contextInitialized(ServletContextEvent)
and
WebAppMain.contextDestroyed(ServletContextEvent)
to identify the classloader and JVM which started
Jenkins
jenkinsJVM
- true
if and only if this is the classloader and JVM that started Jenkins
.Copyright © 2004–2021. All rights reserved.