Example usage for java.lang ClassLoader setPackageAssertionStatus

List of usage examples for java.lang ClassLoader setPackageAssertionStatus

Introduction

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

Prototype

public void setPackageAssertionStatus(String packageName, boolean enabled) 

Source Link

Document

Sets the package default assertion status for the named package.

Usage

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

@Override
public synchronized void setPackageAssertionStatus(String packageName, boolean enabled) {
    for (ClassLoader classloader : classLoaders) {
        classloader.setPackageAssertionStatus(packageName, enabled);
    }//  w  w w.j  av  a2  s.c  om
}