edu.umd.cfar.lamp.apploader.prefs
Class PropsToPrefs

java.lang.Object
  extended byedu.umd.cfar.lamp.apploader.prefs.PropsToPrefs
All Implemented Interfaces:
TriggerHandler

public class PropsToPrefs
extends java.lang.Object
implements TriggerHandler

A TriggerHandler that converts from java properties to AppLoader preferences.

Author:
davidm

Constructor Summary
PropsToPrefs()
           
 
Method Summary
 void invoke(PrefsManager prefs, com.hp.hpl.jena.rdf.model.Resource def, java.lang.String value)
          It isn't clear at what layer these should be added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropsToPrefs

public PropsToPrefs()
Method Detail

invoke

public void invoke(PrefsManager prefs,
                   com.hp.hpl.jena.rdf.model.Resource def,
                   java.lang.String value)
It isn't clear at what layer these should be added. I am putting them in the 'temporary' preferences, so they are not serialized (if/when I add serialization of prefs).

Specified by:
invoke in interface TriggerHandler
Parameters:
prefs - The preferences to modify.
def - The RDF resource that defined the handler
value - The value passed from the command line or java property.
See Also:
TriggerHandler.invoke(PrefsManager, Resource, String)