br.shob.client
Class ShobClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--br.shob.client.ShobClassLoader

public class ShobClassLoader
extends ClassLoader

This is a special class loader capable of retrieving classes from an object's owner and loading them in the clients.

Version:
$Revision: 1.9 $
Author:
crolmos, dukejeffrie
Created:
August 31, 2002

Field Summary
protected  String globalName
          A ShobClassLoader is dedicated to only one shared object
protected  Logger logger
          Message logger
protected  String loggerName
           
protected  SharedSpace sharedSpace
          Description of the Field
 
Constructor Summary
ShobClassLoader(String globalName, SharedSpace sharedSpace)
          Constructor for the ShobClassLoader object
 
Method Summary
protected  Class findClass(String name)
          Description of the Method
 Logger getLogger()
          Gets the logger attribute of the ShobClassLoader object
protected  Class loadClass(String name, boolean resolve)
          Description of the Method
 void setLogger(Logger logger)
          Sets the logger attribute of the ShobClassLoader object
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, 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

globalName

protected String globalName
A ShobClassLoader is dedicated to only one shared object


logger

protected Logger logger
Message logger


loggerName

protected String loggerName

sharedSpace

protected SharedSpace sharedSpace
Description of the Field

Constructor Detail

ShobClassLoader

public ShobClassLoader(String globalName,
                       SharedSpace sharedSpace)
Constructor for the ShobClassLoader object

Parameters:
globalName - Description of the Parameter
sharedSpace - Description of the Parameter
Method Detail

getLogger

public Logger getLogger()
Gets the logger attribute of the ShobClassLoader object

Returns:
The logger value

setLogger

public void setLogger(Logger logger)
Sets the logger attribute of the ShobClassLoader object

Parameters:
logger - The new logger value

findClass

protected Class findClass(String name)
                   throws ClassNotFoundException
Description of the Method

Overrides:
findClass in class ClassLoader
Parameters:
name - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ClassNotFoundException - Description of the Exception

loadClass

protected Class loadClass(String name,
                          boolean resolve)
                   throws ClassNotFoundException
Description of the Method

Overrides:
loadClass in class ClassLoader
Parameters:
name - Description of the Parameter
resolve - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ClassNotFoundException - Description of the Exception