org.apache.directory.api.ldap.schemaloader
Class AttributeClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.directory.api.ldap.schemaloader.AttributeClassLoader

public class AttributeClassLoader
extends ClassLoader

A class loader that loads classes from an attribute within an entry.

Author:
Apache Directory Project

Constructor Summary
AttributeClassLoader()
          Instantiates a new attribute class loader.
 
Method Summary
 Class<?> findClass(String name)
          
 void setAttribute(org.apache.directory.api.ldap.model.entry.Attribute attribute)
          Sets the attribute.
 
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
 

Constructor Detail

AttributeClassLoader

public AttributeClassLoader()
Instantiates a new attribute class loader.

Method Detail

setAttribute

public void setAttribute(org.apache.directory.api.ldap.model.entry.Attribute attribute)
                  throws org.apache.directory.api.ldap.model.exception.LdapException
Sets the attribute.

Parameters:
attribute - the new attribute
Throws:
org.apache.directory.api.ldap.model.exception.LdapException - if the attribute is not binary.

findClass

public Class<?> findClass(String name)
                   throws ClassNotFoundException

Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.