Changes aggregation to composition (as described in issue #1095) (#1096)

This commit is contained in:
Dominik Gruntz 2019-11-18 18:04:40 +01:00 committed by Ilkka Seppälä
parent 8037495e04
commit 7e4d0b4cdc

View File

@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
/**
* The Decorator pattern is a more flexible alternative to subclassing. The Decorator class
* implements the same interface as the target and uses aggregation to "decorate" calls to the
* implements the same interface as the target and uses composition to "decorate" calls to the
* target. Using the Decorator pattern it is possible to change the behavior of the class during
* runtime.
*