Skip to content

Commit f31e183

Browse files
Initial Commit
1 parent 7d31c6c commit f31e183

21 files changed

Lines changed: 528 additions & 2 deletions

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.gradle
2+
/build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
5+
### STS ###
6+
.apt_generated
7+
.classpath
8+
.factorypath
9+
.project
10+
.settings
11+
.springBeans
12+
.sts4-cache
13+
14+
### IntelliJ IDEA ###
15+
.idea
16+
*.iws
17+
*.iml
18+
*.ipr
19+
/out/
20+
21+
### NetBeans ###
22+
/nbproject/private/
23+
/nbbuild/
24+
/dist/
25+
/nbdist/
26+
/.nb-gradle/

README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
1-
# DesignPattern
2-
DesignPattern
1+
# Design Pattern
2+
3+
**Java Design Patterns are divided into three categories – creational, structural, and behavioral design patterns. This post serves as an index for all the java design patterns articles I have written so far.**
4+
5+
6+
[Creational Design Patterns]("#Creational-Design-Patterns")
7+
- [Singleton Pattern]("###Singleton-Pattern")
8+
- Factory Pattern
9+
- Abstract Factory Pattern
10+
- Builder Pattern
11+
- Prototype Pattern
12+
# Structural Design Patterns
13+
- Adapter Pattern
14+
- Composite Pattern
15+
- Proxy Pattern
16+
- Flyweight Pattern
17+
- Facade Pattern
18+
- Bridge Pattern
19+
- Decorator Pattern
20+
# Behavioral Design Patterns
21+
- Template Method Pattern
22+
- Mediator Pattern
23+
- Chain of Responsibility Pattern
24+
- Observer Pattern
25+
- Strategy Pattern
26+
- Command Pattern
27+
- State Pattern
28+
- Visitor Pattern
29+
- Interpreter Pattern
30+
- Iterator Pattern
31+
- Memento Pattern
32+
# Miscellaneous Design Patterns
33+
- DAO Design Pattern
34+
- Dependency Injection Pattern
35+
- MVC Pattern
36+
37+
# Creational Design Patterns
38+
Creational design patterns provide solution to instantiate a object in the best possible way for specific situations
39+
### Singleton-Pattern
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Singelton/build.gradle

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/********** Applying Plugin *************/
2+
apply plugin: 'java'
3+
apply plugin: 'eclipse'
4+
5+
/********** buildscript *************/
6+
buildscript {
7+
ext {
8+
version = '2.0.1.RELEASE'
9+
}
10+
repositories {
11+
mavenCentral()
12+
}
13+
dependencies {
14+
15+
}
16+
}
17+
18+
repositories {
19+
mavenCentral()
20+
}
21+
22+
sourceCompatibility = 1.7
23+
group = 'com.java.design.pattern'
24+
version = '0.0.1-SNAPSHOT'
25+
26+
println "Starting Building Project:"+project.name
27+
28+
jar
29+
{
30+
baseName=project.name
31+
32+
}
33+
34+
35+
261 Bytes
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Manifest-Version: 1.0
2+

0 commit comments

Comments
 (0)