public class LdapClassLoader
extends java.lang.ClassLoader
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SEARCH_CONTEXTS_CONFIG |
private org.apache.directory.api.ldap.model.name.Dn |
defaultSearchDn |
private DirectoryService |
directoryService |
private static org.slf4j.Logger |
LOG |
private org.apache.directory.api.ldap.model.schema.AttributeType |
objectClassAT
A storage for the ObjectClass attributeType
|
| Constructor and Description |
|---|
LdapClassLoader(DirectoryService directoryService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
findClass(java.lang.String name) |
private byte[] |
findClassInDIT(java.util.List<org.apache.directory.api.ldap.model.name.Dn> searchContexts,
java.lang.String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprivate static final org.slf4j.Logger LOG
public static final java.lang.String DEFAULT_SEARCH_CONTEXTS_CONFIG
private org.apache.directory.api.ldap.model.name.Dn defaultSearchDn
private DirectoryService directoryService
private org.apache.directory.api.ldap.model.schema.AttributeType objectClassAT
public LdapClassLoader(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprivate byte[] findClassInDIT(java.util.List<org.apache.directory.api.ldap.model.name.Dn> searchContexts,
java.lang.String name)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.lang.Class<?> findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundException