org.graffiti.managers.pluginmgr
Class ClassPathPluginDescriptionCollector

java.lang.Object
  extended by org.graffiti.managers.pluginmgr.ClassPathPluginDescriptionCollector
All Implemented Interfaces:
PluginDescriptionCollector

public class ClassPathPluginDescriptionCollector
extends Object
implements PluginDescriptionCollector

Searches for plugin description files in the current CLASSPATH.

Version:
$Revision: 5767 $
See Also:
PluginDescriptionCollector

Constructor Summary
ClassPathPluginDescriptionCollector()
          Constructs a new class path plugin description collector.
 
Method Summary
 List<Entry> collectPluginDescriptions()
          Collects all plugin description files from the given class path.
protected  boolean isPluginDescription(String fileName)
          Checks if the given fileName looks like a graffiti plugin description file.
(package private)  List<String> splitClassPath(String classPath, String separator)
          Splits the CLASSPATH string and returns the elements of the CLASSPATH in a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathPluginDescriptionCollector

public ClassPathPluginDescriptionCollector()
Constructs a new class path plugin description collector.

Method Detail

collectPluginDescriptions

public List<Entry> collectPluginDescriptions()
Collects all plugin description files from the given class path.

Specified by:
collectPluginDescriptions in interface PluginDescriptionCollector
Returns:
An enumeration of all plugin description files from the given class path.

isPluginDescription

protected boolean isPluginDescription(String fileName)
Checks if the given fileName looks like a graffiti plugin description file. Does no dtd check or XML parsing.

Parameters:
fileName - the name of the file to check.
Returns:
DOCUMENT ME!

splitClassPath

List<String> splitClassPath(String classPath,
                            String separator)
Splits the CLASSPATH string and returns the elements of the CLASSPATH in a list.

Parameters:
classPath - DOCUMENT ME!
separator - DOCUMENT ME!
Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:00:36 PM CEST