Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (7 sloc) 570 Bytes

Construction Through Access

The most flexible way to set up capabilities from resources is to set up a resource with private methods that are then exposed through an Access class in a companion object which has sibling privileges to the capabilities.

You can read more in @ref:Constructing Capabilities section of the guide.


@@snip Construction.scala { #before }


@@snip Construction.scala { #after-amplification }