registerOrGetPermissionStateRepoBuilder

Gets the PermissionStateRepoBuilder registered for 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

permissionStateRepoBuilder

the closure to build a BasePermissionStateRepo for a given P.

Type Parameters

P

the type of Permission for which to register the builder.


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

permission

the KClass of the P to register

permissionStateRepoBuilder

the closure to build a BasePermissionStateRepo for a given P.

Type Parameters

P

the type of Permission for which to register the builder.