org.trippi.config
Class TrippiConfig

java.lang.Object
  extended by org.trippi.config.TrippiConfig

public class TrippiConfig
extends java.lang.Object

Persistent configuration for working with one or more Trippi-enabled stores and holding onto a set of aliases.


Constructor Summary
TrippiConfig(java.io.File configFile)
           
 
Method Summary
 java.util.Map getAliasMap()
           
static TrippiProfile getProfile(java.util.Properties p, java.lang.String id, java.lang.String label)
           
 java.util.Map getProfiles()
          Get a map of named TrippiProfiles from the config file.
 void setAliasMap(java.util.Map aliasMap)
           
 void setProfiles(java.util.Map profiles)
          Set the profiles in the config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrippiConfig

public TrippiConfig(java.io.File configFile)
Method Detail

getProfiles

public java.util.Map getProfiles()
                          throws TrippiException
Get a map of named TrippiProfiles from the config file.

Throws:
TrippiException

getProfile

public static TrippiProfile getProfile(java.util.Properties p,
                                       java.lang.String id,
                                       java.lang.String label)

setProfiles

public void setProfiles(java.util.Map profiles)
                 throws TrippiException
Set the profiles in the config file.

Throws:
TrippiException

getAliasMap

public java.util.Map getAliasMap()
                          throws TrippiException
Throws:
TrippiException

setAliasMap

public void setAliasMap(java.util.Map aliasMap)
                 throws TrippiException
Throws:
TrippiException