시연에서 사용할 이 인터페이스의 구현을 다음 코드에서 볼 수 있다.
예제 4-5 CommentNotificationProxy 인터페이스 구현
public class EmailCommentNotificationProxy
implements CommentNotificationProxy {
@Override
public void sendComment(Comment comment) {
System.out.println("Sending notification for comment: "
+ comment.getText());
}
}