org.limitless.util
Class GroupClassLoader.Worker

java.lang.Object
  extended by org.limitless.util.GroupClassLoader.Worker
All Implemented Interfaces:
FileVisitor.Worker
Enclosing class:
GroupClassLoader

private static class GroupClassLoader.Worker
extends java.lang.Object
implements FileVisitor.Worker

Objects of this class will populate the destination list.


Field Summary
private  java.util.List destination
          Where to drop the Class objects that have the expected interface.
private static org.apache.log4j.Logger logger
          Log4J Logger for the class
private  java.lang.String packageName
          This holds the package portion that is pre-pended to each name before loading.
private  java.lang.Class targetClass
          The class object we're using to test for presence.
 
Constructor Summary
GroupClassLoader.Worker(java.util.List destination, java.lang.String packageName, java.lang.Class targetClass)
           
 
Method Summary
 void process(java.io.File target)
          Load the class and add it to the list if the class implements the target interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
Log4J Logger for the class


packageName

private java.lang.String packageName
This holds the package portion that is pre-pended to each name before loading.


destination

private java.util.List destination
Where to drop the Class objects that have the expected interface.


targetClass

private java.lang.Class targetClass
The class object we're using to test for presence.

Constructor Detail

GroupClassLoader.Worker

public GroupClassLoader.Worker(java.util.List destination,
                               java.lang.String packageName,
                               java.lang.Class targetClass)
Method Detail

process

public void process(java.io.File target)
Load the class and add it to the list if the class implements the target interface.

Specified by:
process in interface FileVisitor.Worker


Copyright © 1995, 2004 Limitless Knowledge Association, All Rights Reserved.