본문 바로가기

Java EE 7

(3)
[자바] 싱글톤 : 자바SE "클래스가 인스턴스를 하나만 갖게 하고 전역 범위에서 이 인스턴스에 접근하는 단일 지점을 제공하기 위해 사용한다." - GoF 대표적으로 java.lang.Runtime이 싱글톤을 구현하는데 코드는 다음과 같다. 또, 다음과 같이 생성 여부를 확인하는 코드를 작성할 수 있다. package com.devjones.web.singleton; public class Singleton { private static Singleton instance; private Singleton() {}; public static Singleton getInstance() { if(instance == null) { return instance = new Singleton(); } return instance; } } 싱글..
EE.2.4 Containers Containers provide the runtime support for Java EE application components. Containers provide a federated view of the underlying Java EE APIs to the application components. Java EE application components never interact directly with other Java EE application components. They use the protocols and methods of the container for interacting with each other and with platform services. Interposing a c..
EE.2.4.2 Java EE Servers Underlying a Java EE container is the server of which it is a part. A Java EE Product Provider typically implements the Java EE server-side functionality using an existing transaction processing infrastructure in combination with Java Platform, Standard Edition (Java SE) technology. The Java EE client functionality is typically built on Java SE technology. Java EE 컨테이너의 기본은 해당 컨테이너가 속한 서버입니다. Ja..