Scala Patterns - HasXIsX
It's often desirable to build wrappers around existing objects, implementing the same interface. As an example one can wrap a java.sql.Connection
object with a wrapper that measures timing data (how long the underlying java.sql.Connection
spent in blocking calls). In fact, it's often useful to build a …