Added index.md
Added index.md with explanation which seems a little bit short of detail. Fixed the directory of the files.
This commit is contained in:
parent
cca40a543a
commit
083065ba93
@ -3,14 +3,14 @@ layout: pattern
|
||||
title: Front Controller
|
||||
folder: front-controller
|
||||
permalink: /patterns/front-controller/
|
||||
categories: Presentation Tier
|
||||
categories: Creational
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
---
|
||||
|
||||
## Intent
|
||||
Introduce a common handler for all requests for a web site. This
|
||||
Introduce how to create objects which follow value semantics rather than reference semantics.
|
||||
way we can encapsulate common functionality such as security,
|
||||
internationalization, routing and logging in a single place.
|
||||
|
||||
|
BIN
value-object/etc/value-object.png
Normal file
BIN
value-object/etc/value-object.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
19
value-object/etc/value-object.ucls
Normal file
19
value-object/etc/value-object.ucls
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.1.9" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
|
||||
realizations="true" associations="true" dependencies="true" nesting-relationships="true" router="FAN">
|
||||
<class id="1" language="java" name="com.iluwatar.value.object.HeroStat" project="value-object"
|
||||
file="/value-object/src/main/java/com/iluwatar/value/object/HeroStat.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="520" y="337"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</classifier-display>
|
||||
<association-display labels="true" multiplicity="true"/>
|
||||
</class-diagram>
|
34
value-object/index.md
Normal file
34
value-object/index.md
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
layout: pattern
|
||||
title: Value Object
|
||||
folder: value-object
|
||||
permalink: /patterns/value-object/
|
||||
categories: Creational
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
---
|
||||
|
||||
## Intent
|
||||
Provide objects which follow value semantics rather than reference semantics.
|
||||
This means value objects' equality are not based on identity. Two value objects are
|
||||
equal when they have the same value, not necessarily being the same object.
|
||||
|
||||

|
||||
|
||||
## Applicability
|
||||
Use the Value Object when
|
||||
|
||||
* you need to measure the objects' equality based on the objects' value
|
||||
|
||||
## Real world examples
|
||||
|
||||
* [java.util.Date](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
|
||||
* [joda-time, money, beans](http://www.joda.org/)
|
||||
* [JSR-310 / ThreeTen project LocalDate](http://www.threeten.org/articles/local-date.html)
|
||||
|
||||
## Credits
|
||||
|
||||
* [Patterns of Enterprise Application Architecture](http://www.martinfowler.com/books/eaa.html)
|
||||
* [VALJOs - Value Java Objects : Stephen Colebourne's blog](http://blog.joda.org/2014/03/valjos-value-java-objects.html)
|
||||
* [Value Object : Wikipedia](https://en.wikipedia.org/wiki/Value_object)
|
Loading…
x
Reference in New Issue
Block a user