net.sf.mmm.util.reflect.base
Interface ResourceVisitor

All Known Implementing Classes:
ClassNameCollector, ResourceCollector, ResourceNameCollector

public interface ResourceVisitor

This is the interface for a visitor of resources by their absolute classpath.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 boolean visitPackage(String classpath)
          This method is invoked for each traversed package.
 void visitResource(String classpath)
          This method is invoked for each resource.
 

Method Detail

visitPackage

boolean visitPackage(String classpath)
This method is invoked for each traversed package.

Parameters:
classpath - is the absolute classpath of the traversed package (e.g. "net/sf/mmm/util/reflect").
Returns:
true if the package should be traversed recursively, false if the package and all its content (including sub-packages) should be skipped.

visitResource

void visitResource(String classpath)
This method is invoked for each resource.

Parameters:
classpath - is the absolute classpath of the resource (e.g. "net/sf/mmm/util/reflect/api/ReflectionUtil.class" or "net/sf/mmm/util/reflect/beans-reflect.xml").


Copyright © 2001-2010 mmm-Team. All Rights Reserved.