Proxy Pattern (2) 썸네일형 리스트형 Proxy Pattern : Virtual Proxy Pattern 프록시 패턴이라는 개념을 알게 되고 Virtual Proxy Pattern에 대해서 간단한 예제를 만든 소스코드가 있어서 직접 코딩을 해보고 분석을 해보았습니다. ^^ 어려운 코드가 아니니 함께 보시면 좋겠습니다 +_+ 일단 전체적인 소스코드의 UML은 아래와 같습니다. 이하는 각 클래스(인터페이스) 소스코드 입니다. public interface Image { public void displayImage(); } 먼저 Image 라는 인터페이스에서는 이를 구현하는 클래스라면 반드시 displayImage()라는 메소드를 구현하도록 되어있습니다. UML에서와 같이 클라이언트측에 있는 ProxyImage 클래스와 서버측에 있는 RealImage 클래스가 위의 인터페이스를 구현하는것을 볼 수 있습니다. pu.. Design Pattern : Proxy Pattern 위키피디아에 Proxy Pattern에 관련한 글이 있어서 발췌 & 해석해 보았습니다. (출처 : Wikipedia "Proxy Pattern") In computer programming, the proxy pattern is a software design pattern. A proxy, in its most general form, is a class functioning as an interface to another thing. The other thing could be anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to du.. 이전 1 다음