Quantcast
Channel: Java Code Samples » Old stuff
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

To be or not to be … certified ?

Well I am sure there isn’t Yes or No answer to this question but for sure there are some certifications for which No became my answer ! To brief shortly: because in the last 10 years I did mostly Java...

View Article



Image may be NSFW.
Clik here to view.

Iterator

Description: Is used to traverse a container and access the container’s elements. The iterator pattern decouples algorithms from containers.Containers may be a list , graph ,tree etc. Benefits:...

View Article

Image may be NSFW.
Clik here to view.

Mediator

Description: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their...

View Article

Image may be NSFW.
Clik here to view.

Memento

Description: The Memento captures and externalizes an object’s internal state so that the object can later be restored to that state.Command can use Memento to maintain the state required for an undo...

View Article

Image may be NSFW.
Clik here to view.

Observer

Description: “Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. “ Benefits: Abstract coupling between...

View Article


Image may be NSFW.
Clik here to view.

Visitor

Description: Is a way of separating an algorithm from an object structure on which it operates. A practical result of this separation is the ability to add new operations to existing object structures...

View Article

Image may be NSFW.
Clik here to view.

State

Description: The State pattern allows an object to alter its behavior when its internal state changes Benefits: Localizes state-specific behavior and partitions behavior for different states Makes...

View Article

Image may be NSFW.
Clik here to view.

Strategy

Description: Strategy pattern  is a particular software design pattern, whereby algorithms can be selected at runtime. Formally speaking, the strategy pattern defines a family of algorithms,...

View Article


Image may be NSFW.
Clik here to view.

Template method

Description: Define the skeleton of the algorithm in an operation and deferring the exact implementations of the steps of the algorithms to its subclasses. Template method uses the HR policy of “we...

View Article


Image may be NSFW.
Clik here to view.

Intercepting Filter

Context The presentation-tier request handling mechanism receives many different types of requests, which require varied types of processing. Some requests are simply forwarded to the appropriate...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images