ariba.ui.aribaweb.util
Class AWJarWalker.ClasspathUrlFinder

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWJarWalker.ClasspathUrlFinder
Enclosing class:
AWJarWalker

public static class AWJarWalker.ClasspathUrlFinder
extends Object


Constructor Summary
AWJarWalker.ClasspathUrlFinder()
           
 
Method Summary
static URL findClassBase(Class clazz)
          Find the classpath for the particular class
static URL[] findClassPaths()
          Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH
static URL[] findClassPaths(String... paths)
          Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH

paths is used as a filter to only include paths that have the specific relative file within it

static URL findResourceBase(String baseResource)
          Find the classpath URL for a specific classpath resource.
static URL findResourceBase(String baseResource, ClassLoader loader)
          Find the classpath URL for a specific classpath resource.
static URL findResourceBase(URL url, String baseResource)
           
static URL[] findResourceBases(String baseResource)
          Find the classpath URLs for a specific classpath resource.
static URL[] findResourceBases(String baseResource, ClassLoader loader, AWJarWalker.UrlFilter filter)
          Find the classpath URLs for a specific classpath resource.
static URL[] findResourceBasesContainingManifestKey(String manifestKey)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWJarWalker.ClasspathUrlFinder

public AWJarWalker.ClasspathUrlFinder()
Method Detail

findResourceBases

public static URL[] findResourceBases(String baseResource,
                                      ClassLoader loader,
                                      AWJarWalker.UrlFilter filter)
Find the classpath URLs for a specific classpath resource. The classpath URL is extracted from loader.getResources() using the baseResource.

Parameters:
baseResource -

findResourceBases

public static URL[] findResourceBases(String baseResource)
Find the classpath URLs for a specific classpath resource. The classpath URL is extracted from loader.getResources() using the baseResource.

Parameters:
baseResource -

findResourceBasesContainingManifestKey

public static URL[] findResourceBasesContainingManifestKey(String manifestKey)

findResourceBase

public static URL findResourceBase(URL url,
                                   String baseResource)

findResourceBase

public static URL findResourceBase(String baseResource)
Find the classpath URL for a specific classpath resource. The classpath URL is extracted from Thread.currentThread().getContextClassLoader().getResource() using the baseResource.

Parameters:
baseResource -

findResourceBase

public static URL findResourceBase(String baseResource,
                                   ClassLoader loader)
Find the classpath URL for a specific classpath resource. The classpath URL is extracted from loader.getResource() using the baseResource.

Parameters:
baseResource -
loader -

findClassBase

public static URL findClassBase(Class clazz)
Find the classpath for the particular class

Parameters:
clazz -

findClassPaths

public static URL[] findClassPaths()
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH


findClassPaths

public static URL[] findClassPaths(String... paths)
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH

paths is used as a filter to only include paths that have the specific relative file within it

Parameters:
paths - list of files that should exist in a particular path


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.