com.gridsystems.innergrid.kernel.plugin
Class StaticPluginFactory

java.lang.Object
  extended by com.gridsystems.innergrid.kernel.plugin.AbstractPluginFactory
      extended by com.gridsystems.innergrid.kernel.plugin.StaticPluginFactory
All Implemented Interfaces:
PluginFactory

public class StaticPluginFactory
extends AbstractPluginFactory

Plugin Discovery Factory that reads the list of plug-ins to register from a well-known file.

Version:
1.0
Author:
Rodrigo Ruiz

Field Summary
 
Fields inherited from class com.gridsystems.innergrid.kernel.plugin.AbstractPluginFactory
log, pluginList
 
Constructor Summary
StaticPluginFactory(java.lang.String configPath)
          Creates a new factory that will obtain the list of Plugin classes from the file denoted by the configPath parameter.
 
Method Summary
 void buildPluginList()
          Reads the plug-in list from file.
 
Methods inherited from class com.gridsystems.innergrid.kernel.plugin.AbstractPluginFactory
addPlugin, getPlugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticPluginFactory

public StaticPluginFactory(java.lang.String configPath)
Creates a new factory that will obtain the list of Plugin classes from the file denoted by the configPath parameter.

The file format is plain ascii text, with a full class name in each line. Blank lines, and those starting with the number (#) character are ignored.

The path is first searched as a file. If it is not a valid file path, it will try to use it as a resource path.

Parameters:
configPath - The path to the configuration file
Method Detail

buildPluginList

public void buildPluginList()
Reads the plug-in list from file.

Specified by:
buildPluginList in class AbstractPluginFactory


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.