© Matthias Noback 2018
Matthias NobackPrinciples of Package Designhttps://doi.org/10.1007/978-1-4842-4119-6_8

8. The Common Closure Principle

Matthias Noback1 
(1)
Zeist, The Netherlands
 

In the previous chapter, we discussed the Common Reuse principle. It was the second principle of package cohesion and it told us that we should put classes in a package that will be used together with the other classes in the package. If a user wants to use a class or a group of classes separately, this calls for a package split.

The third principle of package cohesion is called the Common Closure principle. It’s closely related to the Common Reuse principle because it gives you another perspective on granularity: you will get another answer on the question as to which ...

Get Principles of Package Design: Creating Reusable Software Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.