Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class JARClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by oracle.ldap.util.JARClassLoader

All Implemented Interfaces:
java.io.Serializable

public class JARClassLoader
extends java.lang.ClassLoader
implements java.io.Serializable

Custom class loader load the class from the jar file, which was stored in the directory as a byte array

Since:
OCS 2.1
See Also:
Serialized Form

Constructor Summary
JARClassLoader(byte[] jarContents)
          Creates a custom class loader that makes objects from the jarContents
JARClassLoader(byte[][] jarContents, java.lang.ClassLoader parentClLoader)
          Creates a custom class loader that makes objects from array of jarContents
JARClassLoader(byte[] jarContents, java.lang.ClassLoader parentClLoader)
          Creates a custom class loader that makes objects from the jarContents

 

Method Summary
protected  java.lang.Class findClass(java.lang.String name)
          Locates the class
protected  java.net.URL findResource(java.lang.String name)
          This method willl always return null as the implementation is undefined.
 java.net.URL getResource(java.lang.String name)
          This method willl always return null as the implementation is undefined.
 java.io.InputStream getResourceAsStream(java.lang.String name)
          Get the resource with the given name as an InputStream

 

Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResources, findSystemClass, getPackage, getPackages, getParent, 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

JARClassLoader

public JARClassLoader(byte[][] jarContents,
                      java.lang.ClassLoader parentClLoader)
               throws java.io.IOException
Creates a custom class loader that makes objects from array of jarContents
Throws:
java.io.IOException

JARClassLoader

public JARClassLoader(byte[] jarContents,
                      java.lang.ClassLoader parentClLoader)
               throws java.io.IOException
Creates a custom class loader that makes objects from the jarContents
Throws:
java.io.IOException

JARClassLoader

public JARClassLoader(byte[] jarContents)
               throws java.io.IOException
Creates a custom class loader that makes objects from the jarContents
Throws:
java.io.IOException

Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Locates the class
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

findResource

protected java.net.URL findResource(java.lang.String name)
This method willl always return null as the implementation is undefined.
Overrides:
findResource in class java.lang.ClassLoader

getResource

public java.net.URL getResource(java.lang.String name)
This method willl always return null as the implementation is undefined.
Overrides:
getResource in class java.lang.ClassLoader

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)
Get the resource with the given name as an InputStream
Overrides:
getResourceAsStream in class java.lang.ClassLoader
Parameters:
resource - name
Returns:
input stream to the resource

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.