
org.jboss.shrinkwrap.resolver.impl.maven.GetTcclAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-resolver-impl-maven Show documentation
Show all versions of shrinkwrap-resolver-impl-maven Show documentation
Implementation for Resolving Dependencies from a Maven Backend
The newest version!
package org.jboss.shrinkwrap.resolver.impl.maven;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* Obtains the {@link Thread} Context {@link ClassLoader}; should be used inside an
* {@link AccessController#doPrivileged(PrivilegedAction)} block.
*
* @author Andrew Lee Rubinger
*/
public enum GetTcclAction implements PrivilegedAction {
INSTANCE;
@Override
public ClassLoader run() {
return Thread.currentThread().getContextClassLoader();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy