Example usage for java.lang ClassLoader setClassAssertionStatus

List of usage examples for java.lang ClassLoader setClassAssertionStatus

Introduction

In this page you can find the example usage for java.lang ClassLoader setClassAssertionStatus.

Prototype

public void setClassAssertionStatus(String className, boolean enabled) 

Source Link

Document

Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.

Usage

From source file:com.galeoconsulting.leonardinius.api.impl.ChainingClassLoader.java

@Override
public synchronized void setClassAssertionStatus(String className, boolean enabled) {
    for (ClassLoader classloader : classLoaders) {
        classloader.setClassAssertionStatus(className, enabled);
    }/*from  ww  w .j a v  a  2  s  .co  m*/
}