net.sourceforge.pavlov.pluglets.feedback.velocity
Class VelocityPlugletLoader

java.lang.Object
  extended by net.sourceforge.pavlov.pluglets.PlugletLoader
      extended by net.sourceforge.pavlov.pluglets.feedback.velocity.VelocityPlugletLoader
All Implemented Interfaces:
AnswerListener

public class VelocityPlugletLoader
extends PlugletLoader
implements AnswerListener

PluginLoader Generates a vector of objects that are a subclass of a given class. These objects must have a no-arg constructor and be in a given directory. If a serious error occurs (no such directory, can't read directory, no files) the vector will be null. Otherwise, individual classes are skipped. Current implementation prints status and error/exception information to stdout. There is, at this time, little support for JarFiles or subdirectories.


Field Summary
protected  VelocityContext context
           
 
Fields inherited from class net.sourceforge.pavlov.pluglets.PlugletLoader
pluglets
 
Constructor Summary
VelocityPlugletLoader(String directory)
          Creates a new VelocityPlugletLoader instance.
 
Method Summary
 void addToAnswerEventProducer(AnswerEventProducer cont)
          Deprecated. This should be in FeedbackPluglet
 void answerEvent(AnswerEvent e)
          Called when the user answers a question.
 
Methods inherited from class net.sourceforge.pavlov.pluglets.PlugletLoader
addToContainer, addToJMenuAsCheckboxes, addToJMenuAsRadioButtons, getPluginByName, isAJarFile, mungeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected VelocityContext context
Constructor Detail

VelocityPlugletLoader

public VelocityPlugletLoader(String directory)
Creates a new VelocityPlugletLoader instance.

Parameters:
baseClassName - a String value
directory - a String value
Method Detail

addToAnswerEventProducer

@Deprecated
public void addToAnswerEventProducer(AnswerEventProducer cont)
Deprecated. This should be in FeedbackPluglet

Describe addToAnswerEventProducer method here.

Overrides:
addToAnswerEventProducer in class PlugletLoader
Parameters:
cont - an AnswerEventProducer value

answerEvent

public void answerEvent(AnswerEvent e)
Called when the user answers a question.

Specified by:
answerEvent in interface AnswerListener
Parameters:
e - an AnswerEvent value