-
코드public class Singleton { // 클래스 내부에 유일한 인스턴스. // 초기값을 두지 않고 getInstance 에서 생성하는 것을 lazy initialization 이라 하며, 메모리를 아낄 수 있으나 동시성 문제가 있을 수 있다. private static Singleton instance; // 여기서 new Singleton(); 를 두는 것을 early init...
-
import org.springframework.context.annotation.Beanimport org.springframework.context.annotation.Configurationimport org.springframework.context.annotation.Scopeimport org.springframework.context.annotation.ScopedProxyMode@Configur...
-
개요 컴퓨터 프로그래밍의 역사가 발전하면서 대규모 프로젝트를 개발하는 사례가 점차 늘어갔고, 이에 따라 대규모 프로젝트를 구현함에 있어 나타날 수 있는 유지보수, 모듈화, 확장성 등 여러 문제에 대한 인식이 나타나기 시작했다. 특히 년대에 그래픽 환경에서 유저 인터페이스를 제공하는 컴퓨터 시스템 구현을 시도했던 제록스의 Palo Alto Research Center (PARC)에서는 ‘스...
OOP (3)