Skip to content

Commit 4298a65

Browse files
committed
java interface 는 언떨 때 만드는가에 대해서...
1 parent 8b649ab commit 4298a65

5 files changed

Lines changed: 50 additions & 7 deletions

File tree

‎_data/pageMap.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Docker:
2828
summary: 'Docker 에 대한 모든것'
2929
parent: DevOps
3030
url: /wiki/Docker
31-
updated: '2018-09-06 02:09:35 +0900'
31+
updated: '2018-10-02 00:44:29 +0900'
3232
children: []
3333
Enum:
3434
type: wiki
@@ -44,7 +44,15 @@ index:
4444
summary: 'anyjava wiki index'
4545
parent: null
4646
url: /wiki/index
47-
updated: '2018-09-18 20:12:49 +0900'
47+
updated: '2018-10-02 22:30:57 +0900'
48+
children: []
49+
Interface:
50+
type: wiki
51+
title: 'java interface'
52+
summary: 'inteface 는 어떨때 만들어야 햐는가?'
53+
parent: Java
54+
url: /wiki/Interface
55+
updated: '2018-10-02 22:34:56 +0900'
4856
children: []
4957
Jackson:
5058
type: wiki
@@ -61,7 +69,7 @@ Java:
6169
parent: index
6270
url: /wiki/Java
6371
updated: '2018-09-13 08:36:04 +0900'
64-
children: [Enum, Jackson, Optional, PostContrunct]
72+
children: [Enum, Interface, Jackson, Optional, PostContrunct]
6573
JPA:
6674
type: wiki
6775
title: JPA
@@ -132,5 +140,5 @@ Web:
132140
summary: 'anyjava wiki index'
133141
parent: index
134142
url: /wiki/개발환경세팅
135-
updated: '2018-09-19 10:01:33 +0900'
143+
updated: '2018-10-02 09:23:19 +0900'
136144
children: []

‎_data/tagList.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
- devops
44
- docker
55
- 'enum,'
6+
- interface
67
- jackson
78
- java
89
- 'java,'
910
- 'Java,'
1011
- jpa
1112
- 'json,'
1213
- linux
14+
- 'oop,'
1315
- optional
1416
- slf4j
1517
- spring

‎_data/tagMap.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ docker:
1111
java:
1212
- {fileName: Enum}
1313
- {fileName: Java}
14+
'java,':
15+
- {fileName: Interface}
16+
- {fileName: PostContrunct}
17+
'oop,':
18+
- {fileName: Interface}
19+
interface:
20+
- {fileName: Interface}
1421
'json,':
1522
- {fileName: Jackson}
1623
jackson:
@@ -25,8 +32,6 @@ slf4j:
2532
- {fileName: Optional}
2633
optional:
2734
- {fileName: Optional}
28-
'java,':
29-
- {fileName: PostContrunct}
3035
annoatation:
3136
- {fileName: PostContrunct}
3237
spring:

‎_wiki/Interface.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout : wiki
3+
title : java interface
4+
summary : inteface 는 어떨때 만들어야 햐는가?
5+
date : 2018-10-02 22:30:57 +0900
6+
updated : 2018-10-02 22:34:56 +0900
7+
tags : java, oop, interface
8+
toc : true
9+
public : true
10+
parent : Java
11+
latex : false
12+
---
13+
* TOC
14+
{:toc}
15+
16+
# Java Interface 는 무조건 만드는게 좋은가?
17+
18+
* spring 기준으로 설명
19+
* spring 4.0 이전 버젼에서 @Transactional 을 사용하려면 class일 경우에 CGLib을 이용하여 AOP를 구현 하였는데, 그때는 성능에 이슈가 있었다고 한다.
20+
* 하지만, 4.0 이후로 오면서 성능이슈가 해결되면서 각자 성향대로 사용하게되었다고
21+
* 결론으로 나는?
22+
* 나는 우선 Service Layer 에서는 inteface 를 만들지 않는다.
23+
* 변화의 가능성이 높은 부분에 대해서만 interface 를 만든다. (아래 링크 글 참고)
24+
25+
# 참고 글
26+
27+
* (안정된 의존관계 원칙과 안정된 추상화 원칙에 대하여)[http://woowabros.github.io/study/2018/03/05/sdp-sap.html]

‎_wiki/index.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout : wiki
33
title : index
44
summary : anyjava wiki index
55
date : 2018-08-15 19:41:36 +0900
6-
updated : 2018-09-18 20:12:49 +0900
6+
updated : 2018-10-02 22:30:57 +0900
77
tags :
88
toc : true
99
public : true
@@ -19,6 +19,7 @@ latex : false
1919
* [[Enum]]
2020
* [[Optional]]
2121
* [[PostContrunct]]
22+
* [[Interface]]
2223
* [[Spring]]
2324
* [[Spring_Boot_Actuator]]
2425
* [[JPA]]

0 commit comments

Comments
 (0)