마찬가지로 CommentService 객체에 필요한 두 번째 책임에 대한 인터페이스인 CommentNotificationProxy를 정의한다. 이 인터페이스와 이를 구현하는 클래스는 프로젝트의 proxies 패키지에서 정의한다. 다음 목록은 이 인터페이스를 보여 준다.
예제 4-4 CommentNotificationProxy 인터페이스 정의
public interface CommentNotificationProxy {
void sendComment(Comment comment);
}