org.apache.pluto.util
Class ClasspathScanner

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

public class ClasspathScanner
extends java.lang.Object


Constructor Summary
ClasspathScanner()
           
 
Method Summary
static java.util.List findConfiguredImplementations(java.lang.Class implemented)
          Mechanism for finding all implementations of the specified interface.
static java.util.List scan(java.lang.String path)
          Retrieve a lit of all urls matching the specified path.
static java.util.List scan(java.lang.String path, java.lang.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 java.util.List scan(java.lang.String path)
                           throws java.io.IOException
Retrieve a lit of all urls matching the specified path.

Parameters:
path -
Returns:
Throws:
java.io.IOException

scan

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

Parameters:
path -
loader -
Returns:
Throws:
java.io.IOException

findConfiguredImplementations

public static java.util.List findConfiguredImplementations(java.lang.Class implemented)
                                                    throws java.io.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:
java.io.IOException - if an error occurs during classpath scanning.


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