PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/kilim/KilimClassLoader.java

http://github.com/kilim/kilim
Java | 17 lines | 9 code | 4 blank | 4 comment | 1 complexity | 3cf44a601b19261b0bf77a244ebd54d7 MD5 | raw file
 1// Copyright 2011 by sriram - offered under the terms of the MIT License
 2
 3package kilim;
 4
 5/**
 6 * Extends Classloader just to have access to the (protected) findLoadedClass method
 7 */
 8public class KilimClassLoader extends ClassLoader {
 9    public KilimClassLoader() {
10        super(KilimClassLoader.class.getClassLoader());
11    }
12
13    
14    public boolean isLoaded(String className) {
15        return super.findLoadedClass(className) != null;
16    }
17}