org.fcrepo.server.utilities.rebuild.cli
Class CLILoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.fcrepo.server.utilities.rebuild.cli.CLILoader

public class CLILoader
extends URLClassLoader

A proxy for various command-line entry-points. It addresses the following problems with Mavenized builds: Java 5 doesn't support wildcard classpath entries. Windows has a length limitation for command arguments that prevents building a classpath. The endorsed standards override allows specification of a directory, but classes loaded thus cannot use calls to .getClassLoader() to load resources.

Author:
Benjamin Armintor
See Also:
Rebuild, Class.getClassLoader()

Constructor Summary
CLILoader(URL[] paths)
           
CLILoader(URL[] paths, ClassLoader parent)
           
 
Method Summary
static void main(String[] args)
          main(String[]) assumes access to a system property ("fedora.web.inf.lib") that refers to a directory containing all the jar libraries needed to invoke the main class.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, 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

CLILoader

public CLILoader(URL[] paths)

CLILoader

public CLILoader(URL[] paths,
                 ClassLoader parent)
Method Detail

main

public static void main(String[] args)
main(String[]) assumes access to a system property ("fedora.web.inf.lib") that refers to a directory containing all the jar libraries needed to invoke the main class. Usage: args[0]: args[1:n] : remaining arguments to be passed to class indicated in args[0]



Copyright © 2011 DuraSpace. All Rights Reserved.