public static final class SubjectRegistry.Implementation extends Object implements SubjectRegistry
SubjectRegistry
default implementation that synchronizes on a provided lock instance for
accessing the internal registry in order to avoid concurrency issues while the internal datastructure is
rebuilt.SubjectRegistry.Implementation
Modifier and Type | Method and Description |
---|---|
Object |
lockSubjectRegistry()
Returns the lock instance that is internally used by this registry instance.
|
Subject |
subject(String subjectName)
Returns the
Subject instance identified by the passed subject name. |
Map<String,Subject> |
subjects()
Returns a read-only map of all known
Subject instances (values), identified by their names (keys). |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
New, New, New, New
public final Subject subject(String subjectName)
Subject
instance identified by the passed subject name.subject
in interface SubjectRegistry
subjectName
- the name identifying the desired Subject
instance.Subject
instance identified by the passed name.public final Map<String,Subject> subjects()
Subject
instances (values), identified by their names (keys).subjects
in interface SubjectRegistry
public final Object lockSubjectRegistry()
lockSubjectRegistry
in interface SubjectRegistry