public static final class RoleRegistry.Implementation extends Object implements RoleRegistry
RoleRegistry
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.RoleRegistry.Implementation
Modifier and Type | Method and Description |
---|---|
Object |
lockRoleRegistry()
Returns the lock instance that is internally used by this registry instance.
|
Role |
role(String roleName)
Returns the
Role instance identified by the passed role name. |
Map<String,Role> |
roles()
Returns a read-only map of all known
Role instances (values), identified by their names (keys). |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
New, New, New, New
public final Role role(String roleName)
Role
instance identified by the passed role name.role
in interface RoleRegistry
roleName
- the name identifying the desired Role
instance.Role
instance identified by the passed name.public final Map<String,Role> roles()
Role
instances (values), identified by their names (keys).roles
in interface RoleRegistry
public final Object lockRoleRegistry()
lockRoleRegistry
in interface RoleRegistry