Example usage for org.springframework.boot.autoconfigure.jndi JndiPropertiesHidingClassLoader JndiPropertiesHidingClassLoader

List of usage examples for org.springframework.boot.autoconfigure.jndi JndiPropertiesHidingClassLoader JndiPropertiesHidingClassLoader

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.jndi JndiPropertiesHidingClassLoader JndiPropertiesHidingClassLoader.

Prototype

public JndiPropertiesHidingClassLoader(ClassLoader parent) 

Source Link

Usage

From source file:org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfigurationTests.java

@Before
public void setupThreadContextClassLoader() {
    this.threadContextClassLoader = Thread.currentThread().getContextClassLoader();
    Thread.currentThread()//from   w  ww . ja  va 2s  .  c  o m
            .setContextClassLoader(new JndiPropertiesHidingClassLoader(getClass().getClassLoader()));
}