org.apache.directory.server.core.sp
Class LdapClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.directory.server.core.sp.LdapClassLoader

public class LdapClassLoader
extends java.lang.ClassLoader

A class loader that loads classes from an LDAP DIT.

This loader looks for an configuration entry whose DN is determined by defaultSearchContextsConfig variable. If there is such an entry it gets the search contexts from the entry and searches the class to be loaded in those contexts. If there is no default search context configuration entry it searches the class in the whole DIT.

Version:
$Rev$ $Date$
Author:
Apache Directory Project

Field Summary
static java.lang.String defaultSearchContextsConfig
           
 
Constructor Summary
LdapClassLoader(DirectoryService directoryService)
           
 
Method Summary
 java.lang.Class<?> findClass(java.lang.String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultSearchContextsConfig

public static java.lang.String defaultSearchContextsConfig
Constructor Detail

LdapClassLoader

public LdapClassLoader(DirectoryService directoryService)
                throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

findClass

public java.lang.Class<?> findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.