org.trippi.config
Class TrippiConfig
java.lang.Object
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.
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 TrippiProfile s 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 |
TrippiConfig
public TrippiConfig(java.io.File configFile)
getProfiles
public java.util.Map getProfiles()
throws TrippiException
- Get a map of named
TrippiProfile
s 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