Pattern of constraining an object construction

Pattern of constraining an object construction