public class AttributeClassLoader extends ClassLoader
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.entry.Attribute |
attribute
The attribute.
|
| Constructor and Description |
|---|
AttributeClassLoader()
Instantiates a new attribute class loader.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findClass(String name) |
private static byte[] |
getBytes(InputStream input)
Read data from a jar, and write them into a byte[]
|
private Map<String,Class<?>> |
loadClasses(byte[] jarBytes)
Load classes from a jar
|
void |
setAttribute(org.apache.directory.api.ldap.model.entry.Attribute attribute)
Sets the attribute.
|
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 org.apache.directory.api.ldap.model.entry.Attribute attribute
public AttributeClassLoader()
public void setAttribute(org.apache.directory.api.ldap.model.entry.Attribute attribute)
throws org.apache.directory.api.ldap.model.exception.LdapException
attribute - the new attributeorg.apache.directory.api.ldap.model.exception.LdapException - if the attribute is not binary.private static byte[] getBytes(InputStream input) throws IOException
input - The Stream we will load the Attribute fromIOException - If the stream can't be readprivate Map<String,Class<?>> loadClasses(byte[] jarBytes) throws IOException
jarBytes - The jar bytesIOException - If the stream can't be readpublic Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.