|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.parameters.ParamFileRepository
public class ParamFileRepository
This class provides basic file-based storage/retrieval of parameter trees for the JBoss ESB.
This class creates a hierarchical parameter file structure on the file system. E.g. the value for a parameter named "org/jboss/param1" is stored in a file called "param1" in the folder "
| Field Summary | |
|---|---|
static java.lang.String |
FILE_PARAMS_REPOS_ROOT
System property defining the repository root directory. |
| Constructor Summary | |
|---|---|
ParamFileRepository()
Public default constructor. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
java.lang.String value)
Store a parameter value in the repository. |
java.lang.String |
get(java.lang.String name)
Get the value associated with the named parameter. |
java.io.File |
getRoot()
Get the repository root directory. |
void |
remove(java.lang.String name)
Remove a parameter, or a hierarchy of parameters. |
java.io.File |
toParamFile(java.lang.String name)
Get the param file for the specified param name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_PARAMS_REPOS_ROOT
| Constructor Detail |
|---|
public ParamFileRepository()
| Method Detail |
|---|
public void add(java.lang.String name,
java.lang.String value)
throws ParamRepositoryException
ParamRepository
add in interface ParamRepositoryname - The parameter name. Must not be null.value - The parameter value. Must not be null.
ParamRepositoryException - Failed to store the specified parameter value.
public java.lang.String get(java.lang.String name)
throws ParamRepositoryException
ParamRepository
get in interface ParamRepositoryname - The parameter name. Must not be null.
ParamRepositoryException - The parameter exists, but an error has occured
while readingit.public void remove(java.lang.String name)
ParamRepository
remove in interface ParamRepositoryname - The parameter name. Must not be null.public java.io.File getRoot()
public java.io.File toParamFile(java.lang.String name)
paramName - The param name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||