Example usage for java.security ProtectionDomain getClassLoader

List of usage examples for java.security ProtectionDomain getClassLoader

Introduction

In this page you can find the example usage for java.security ProtectionDomain getClassLoader.

Prototype

public final ClassLoader getClassLoader() 

Source Link

Document

Returns the ClassLoader of this domain.

Usage

From source file:jp.gr.java_conf.schkit.utils.ApplicationInfo.java

private ApplicationInfo() {
    try {/*from  w w w. j  a  va  2  s.c om*/
        ProtectionDomain domain = this.getClass().getProtectionDomain();
        classLotation = domain.getCodeSource().getLocation();
        classLoader = (URLClassLoader) domain.getClassLoader();

        loadManifest();
        // setDirectories();
    } catch (Exception e) {
    }
}