1. Home
  2. Training Library
  3. Programming
  4. Programming Courses
  5. Using Design Patterns in Java Projects

J2EE Patterns

Contents

keyboard_tab
Design Patterns
1
Design Patterns
PREVIEW2m 26s
2
Singleton Pattern
PREVIEW3m 13s
9
Decorator
7m 48s
10
Flyweight
9m 20s
11
Proxy
7m 36s
12
Facade
6m 5s
14
Command
11m 44s
15
Iterator
8m 24s
16
Visitor
9m 4s
17
Mediator
11m 38s
18
Memento
9m 48s
19
Observer
10m 40s
20
Strategy
8m 27s
21
State
10m 27s
22
Template
7m 56s
23
MVC
10m 27s
26
DAO
10m 27s
27

The course is part of this learning path

Start course
Overview
Difficulty
Intermediate
Duration
4h 56m
Students
26
Ratings
5/5
starstarstarstarstar
Description

This course takes an in-depth look at how to use design patterns in your Java projects. We will then run through some example questions of what you could expect from the Oracle Certified Java EE exam.

Learning Objectives

  • Understand what design patterns are
  • Learn about the myriad of design patterns that you can use in your projects

Intended Audience

This course is intended for anyone who already has basic knowledge of Java and now wants to learn about Java EE 6.

Prerequisites

Basic knowledge of Java programming.

 

Transcript

Hello, dear friends. In this video, we will start to examine J2EE patterns, let's begin. The Java program, part of the Sun Professional Services has built enterprise solutions for a wide variety of customers. The J2EE patterns evolved from their experience. The core J2EE patterns deal with testing on the presentation tier as offered by the Sun Java Center. Java2EE stands for Java 2 Enterprise Edition, currently known as Java Enterprise Edition. It consists of many APIs that provide software developers with the capabilities to write server side code. The J2EE patterns solve problems using the J2EE platform technologies. Java2EE design patterns are built for the developing of the enterprise web-based applications. Java2EE patterns are concerned about providing solutions regarding Java EE. These patterns are widely accepted by other frameworks and projects.

The purpose of the J2EE patterns is to document and recommend best practices rather than develop entirely new techniques. Let's talk about the key advantages of the J2EE patterns. They are using sound design principles and they are leveraging documented accepted practices. The other advantage is reducing coupling and dependencies between components. Also, patterns are minimizing network traffic. Now, let's remember the structure of Gang of Four patterns. Those patterns have abstract solutions and can be implemented in very diverse ways. They can be used with any object-oriented programming language, but J2EE patterns were designed for the J2EE platform and they often build on or expand GoF patterns or other J2EE patterns. In J2EE, there are mainly three types of design patterns which are further divided into their sub parts. Presentation layer design patterns or presentation tier. Business layer design patterns or business tier. Integration layer or integration tier.

Presentation tier patterns are: intercepting filter design pattern, context object design pattern, front controller design pattern, application controller design pattern, view helper design pattern, composite view design pattern, dispatcher view design pattern, and service to worker design pattern. Business tier patterns are: business delegate design pattern, service locator design pattern, session facade design pattern, application server design pattern, business object design pattern, composite entity design pattern, transfer object design pattern, transfer object assembler design pattern, and value list handler design pattern. Integration tier patterns are: data access object design pattern, service activator design pattern, domain store design pattern, and web service broker design pattern.

Since I cannot go through all of them in this training, I will cover some of them in the videos that follow. Now, let's look at this image. This image shows us the relationship between GoF and J2EE patterns. It looks very complicated, but this image will be very helpful to you when working on large projects. For example, business delegate might be a proxy, adapter, or a facade. Let's look at another one. Front controller might create a command and this might include the composite. Time for a quick break. In the next video, we will start to examine integration patterns with service activator. See you in the next video.

 

About the Author
Students
512
Courses
47
Learning Paths
3

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics