registerOrGetPermissionStateRepoBuilder

Gets the PermissionStateRepoBuilder registered for a a given type of Permission. If no builder has been registered yet, permissionStateRepoBuilder will be registered instead. This method is thread-safe.

Return

the PermissionStateRepoBuilder registered.

Parameters

P

the type of Permission for which to register the builder.

permissionStateRepoBuilder

the closure to build a BasePermissionStateRepo for a given P.


Gets the PermissionStateRepoBuilder registered for a a given type of Permission. If no builder has been registered yet, permissionStateRepoBuilder will be registered instead. This method is thread-safe.

Return

the PermissionStateRepoBuilder registered.

Parameters

P

the type of Permission for which to register the builder.

permission

the KClass of the P to register

permissionStateRepoBuilder

the closure to build a BasePermissionStateRepo for a given P.