일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- hadoop
- 제주
- 인텔리J
- Java
- SBT
- spark
- Spring
- Spring XD
- 도메인주도설계
- Clean Code
- Storm
- Angular2
- design pattern
- intellij
- hibernate
- 엘라스틱서치
- Hbase
- Spring Boot
- scala
- Linux
- Spring Batch
- 스프링 배치
- Gradle
- nginx
- DDD
- docker
- hdfs
- apache storm
- elasticsearch
- elastic search
- Today
- Total
목록전체 글 (275)
욱'S 노트
When Using It 하위클래스에 구현을 위임하고 싶을때 Class Diagram Sample Code public abstract class AbstractClass { public abstract void templateMethod1(); public abstract void templateMethod2(); public abstract void templateMethod3(); public void execute() { templateMethod1(); templateMethod2(); templateMethod3(); } } public class ConcreteClass extends AbstractClass { @Override public void templateMethod1() {}..
When Using It Heavy한 Job이 수행되는 클래스들을 미리 만들어 놓고 공유하고 싶을때 Class Diagram Sample Code public interface Aggregate { } public interface Iterator { public Object next(); public boolean hasNext(); } public class ConcreteAggregate implements Aggregate { private Object[] items; public Iterator iterator() { return new ConcreteIterator(this); } public Object getItem(int index) { if ( index < items.length ..
When Using It Heavy한 Job이 수행되는 클래스들을 미리 만들어 놓고 공유하고 싶을때 Class Diagram Sample Code public interface Flyweight { public void Operation(); } public class ConcreteFlyweight implements Flyweight { @Override public void Operation() { System.out.println("A"); } } public class FlyweightFactory { Map pool = new HashMap(); public FlyweightFactory() { pool.put("A",new ConcreteFlyweight()); } public Flywe..
When Using It Lazy Init 등 실제 사용이나 필요로하는 시점에 작업을 수행한다. Class Diagram Sample Code public interface Subject { public void request(); } public class RealSubject implements Subject { @Override public void request() { System.out.println("실제수행"); } } public class Proxy implements Subject { private RealSubject realSubject; @Override public void request() { realSubject.request(); } } Caution 특별한 주의사항은 ..
When Using It 재귀적인 계층구조를 만들고 싶을때 Class Diagram Sample Code public abstract class Component { public abstract void operation(); public abstract void add(Component component); public abstract void remove(Component component); } public class Leaf extends Component { @Override public void operation() { System.out.println(this.toString()); } @Override public void add(Component component) { throw ne..