net.sourceforge.pavlov.pluglets.feedback.velocity
Class VelocityPlugletLoader
java.lang.Object
net.sourceforge.pavlov.pluglets.PlugletLoader
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected VelocityContext context
VelocityPlugletLoader
public VelocityPlugletLoader(String directory)
- Creates a new
VelocityPlugletLoader
instance.
- Parameters:
baseClassName
- a String
valuedirectory
- a String
value
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