com.sun.jini.start
Class ActivateWrapper.ExportClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.jini.loader.pref.PreferredClassLoader
                  extended by com.sun.jini.start.ActivateWrapper.ExportClassLoader
All Implemented Interfaces:
ClassAnnotation
Enclosing class:
ActivateWrapper

static class ActivateWrapper.ExportClassLoader
extends PreferredClassLoader

A simple subclass of PreferredClassLoader that overrides getURLs to return the URLs of the provided export codebase. getURLs is called by the RMI subsystem in order to annotate objects leaving the virtual machine.


Field Summary
private  URL[] exportURLs
          Cached value of the provided export codebase URLs
private  Uuid id
          Id field used to make toString() unique
 
Constructor Summary
ActivateWrapper.ExportClassLoader(URL[] importURLs, URL[] exportURLs, ClassLoader parent)
          Trivial constructor that calls super(importURLs, parent, urlsToPath(exportURLs), false); and assigns exportURLs to an internal field.
 
Method Summary
 URL[] getURLs()
           
 String toString()
          Returns a string representation of this class loader.
 
Methods inherited from class net.jini.loader.pref.PreferredClassLoader
definePackage, getClassAnnotation, getPermissions, getResource, isPreferredResource, loadClass, newInstance
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, 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, wait, wait, wait
 

Field Detail

exportURLs

private final URL[] exportURLs
Cached value of the provided export codebase URLs


id

private final Uuid id
Id field used to make toString() unique

Constructor Detail

ActivateWrapper.ExportClassLoader

public ActivateWrapper.ExportClassLoader(URL[] importURLs,
                                         URL[] exportURLs,
                                         ClassLoader parent)
Trivial constructor that calls
 super(importURLs, parent, urlsToPath(exportURLs), false);
 
and assigns exportURLs to an internal field.

Method Detail

getURLs

public URL[] getURLs()
Overrides:
getURLs in class URLClassLoader

toString

public String toString()
Description copied from class: PreferredClassLoader
Returns a string representation of this class loader.

Overrides:
toString in class PreferredClassLoader


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.