org.apache.pluto.util
Class ClasspathScanner

java.lang.Object
  extended by org.apache.pluto.util.ClasspathScanner

public class ClasspathScanner
extends Object


Constructor Summary
ClasspathScanner()
           
 
Method Summary
static List findConfiguredImplementations(Class implemented)
          Mechanism for finding all implementations of the specified interface.
static List scan(String path)
          Retrieve a lit of all urls matching the specified path.
static List scan(String path, ClassLoader loader)
          Retrieve a list of all urls massing the specified path for the specified classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathScanner

public ClasspathScanner()
Method Detail

scan

public static List scan(String path)
                 throws IOException
Retrieve a lit of all urls matching the specified path.

Parameters:
path -
Returns:
Throws:
IOException

scan

public static List scan(String path,
                        ClassLoader loader)
                 throws IOException
Retrieve a list of all urls massing the specified path for the specified classloader.

Parameters:
path -
loader -
Returns:
Throws:
IOException

findConfiguredImplementations

public static List findConfiguredImplementations(Class implemented)
                                          throws IOException
Mechanism for finding all implementations of the specified interface. This method is used for resolving low level implementations of interfaces needed by static and/or non services. These implementations are not bound to their container, but instead, are bound to the global application environment.

Parameters:
implemented - interface implemnted by configured impls
Returns:
list of classes
Throws:
IOException - if an error occurs during classpath scanning.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.