public class InMemoryRepository extends Object implements Repository
Repository class providing access to a simple configuration repository backed by HashMap| Constructor and Description |
|---|
InMemoryRepository() |
InMemoryRepository(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying data source when it isn't require any more.
|
void |
open()
Opens the configuration repository, e.
|
String |
read(String name)
Reads the configuration parameter name from the backing data source.
|
int |
size() |
public void open()
throws RepositoryException
Repositoryopen in interface RepositoryRepositoryException - If an error occurred while opening the data sourcepublic String read(String name)
Repositoryread in interface Repositoryname - The parameter nameStringpublic void close()
throws RepositoryException
Repositoryclose in interface RepositoryRepositoryException - If an error occurred while closing the underlying data sourcepublic int size()
Copyright © 2022. All rights reserved.