ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base
Class URLPackageScanner

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.URLPackageScanner

public class URLPackageScanner
extends Object

Implementation of scanner which can scan a URLClassLoader

Author:
Thomas Heute, Gavin King, Norman Richards, Pete Muir, Aslak Knutsen

Nested Class Summary
static interface URLPackageScanner.Callback
          Callback interface for found classes.
 
Method Summary
static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback)
          Factory method to create an instance of URLPackageScanner in the default package
static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback, String packageName)
          Factory method to create an instance of URLPackageScanner.
 void scanPackage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static URLPackageScanner newInstance(boolean addRecursively,
                                            ClassLoader classLoader,
                                            URLPackageScanner.Callback callback,
                                            String packageName)
Factory method to create an instance of URLPackageScanner.

Parameters:
addRecursively - flag to add child packages
classLoader - class loader that will have classes added
pkg - Package that will be scanned
Returns:
new instance of URLPackageScanner

newInstance

public static URLPackageScanner newInstance(boolean addRecursively,
                                            ClassLoader classLoader,
                                            URLPackageScanner.Callback callback)
Factory method to create an instance of URLPackageScanner in the default package

Parameters:
pkg - Package that will be scanned
addRecursively - flag to add child packages
classLoader - class loader that will have classes added
Returns:
new instance of URLPackageScanner

scanPackage

public void scanPackage()

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.