|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Repository
A Repository is a collection of Subjects. A Subject
can be looked up by name on a Repository, or registered.
Registration of a Subject in a Repository is done via
register(String, SubjectConfig), which requires the subject
name and its configuration. The configuration is a map of configuration
keys to configuration values, both of which are Strings.
| Method Summary | |
|---|---|
Subject |
lookup(String subjectName)
Returns the subject if it exists, null otherwise. |
Subject |
register(String subjectName,
SubjectConfig config)
Attempt to create a Subject with the given name and validator. |
Iterable<Subject> |
subjects()
List all subjects. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
Subject register(String subjectName,
SubjectConfig config)
subjectName - The name of the subject. Must not be null.config - The subject configuration. May be null.
NullPointerException - if subjectName is nullSubject lookup(String subjectName)
subjectName - the subject name
Iterable<Subject> subjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||