MITS4002 OBJECT-ORIENTED SOFTWARE DEVELOPMENT (Research Study) Submitted to : Submitted by : Research Study #Question 1 Contents Research The Creational Design Patterns. The Object Pool Design Method:...

1 answer below »
Research Case Study


MITS4002 OBJECT-ORIENTED SOFTWARE DEVELOPMENT (Research Study) Submitted to : Submitted by : Research Study #Question 1 Contents Research The Creational Design Patterns. The Object Pool Design Method: The Singleton Design Method: The Factory Design Method: When do we need Factory Design Pattern? The Prototype Design Method: The Builder Design Method: object in a sequence of steps. This builder class is independent of other objects. Real Time Example of Builder Design Pattern: References: Pressman, R.S., 2005. Software engineering: a practitioner's approach. Palgrave Macmillan. Research Study #Question 2 1. THE Compute Price: Suggested design pattern: THE ADVANTAGES OF TEMPLATE DESIGN PATTERN Security Design Patterns: Checkout Suggested design pattern: THE ADVANTAGES OF CHAIN OF RESPONSIBILITY DESIGN PATTERN Security Design Patterns:
Answered 6 days AfterJan 20, 2021MITS4001

Answer To: MITS4002 OBJECT-ORIENTED SOFTWARE DEVELOPMENT (Research Study) Submitted to : Submitted by :...

Neha answered on Jan 27 2021
150 Votes
Victorian Institute of Technology
Master of Information Technology & Systems
MITS4002
OBJECT-ORIENTED SOFTWARE DEVELOPMENT
(Research Study)
Submitted to :                                 Submitted by :
                                
Research Study
#Question 1
Contents
The Creational Design Patterns    3
The Object Pool Design Method    3
The Singleton Design Method    4
The Factory Design Method    4
When do we need
Factory Design Pattern?    5
The Prototype Design Method    5
The Builder Design Method:    6
Real Time Example of Builder Design Pattern:    6
References:    7
1.    THE Compute Price:    9
Suggested design pattern: Template Method    9
THE ADVANTAGES OF TEMPLATE DESIGN PATTERN    9
Security Design Patterns:    9
Source Code    10
Checkout    11
Suggested design pattern: Chain of Responsibility    11
THE ADVANTAGES OF CHAIN OF RESPONSIBILITY DESIGN PATTERN    11
Security Design Patterns:    11
Research
The Creational Design Patterns
This patten can be defined as a method which has relation with the manner in which objects are created. These patterns are generally used when we have code which includes decision making during the instantiation of the class in the program. We can use new keyword for the creation of the object in java code.
For example: StudentDetails d1 = new StudentDetails();
When we are designing the hard coded code in the java then it is not a good approach for the developers. It would be better to create the instantiate the object using new keywork. We can change nature of the object as per the requirement of the program. To manage this case, we can use creational design pattern as it makes the code more flexible and helps to achieve more general approach.
The Object Pool Design Method
The major aim of the object pool design method is to reuse the code which is more expensive for creating and implementing. This pattern can be used to provide container to the code as it will have specific number of the objects which will be used in the Java. During the execution of the code if we try to access the object which is present in the pool then it will not be available unless we keep it back into the pool once it is used. The life cycle of the object which are present in the code starts from its creation, validation inside the pool which is helpful for the management of the available resources by the developer in more efficient manner. Application servers in which we have the presence of thread pools, data source pools etc are present can be used as the example of this method.
Advantages:
· Makes it easier to boost the performance of whole application
· Helps to manage the connection and different manners to maintain them
· Rate of instantiation of new class interface becomes efficient and effective.
· Helps to share the limit total number of objects which are created in the code.
The Singleton Design Method
This design method can be defined as the definition of a class which can have only a single instance and it can provide single point of access at global level for it. It is important for the class to make sure that it has only single instance and the single object can be used by the whole class. There are 2 types of Singleton design pattern which are easy instantiation and lazy instantiation. If we create instance at the low time, then it is known as the as instantiation and if we create instance as per the requirement then it is known as lazy instantiation.
Advantages:
· Singleton design pattern makes it easier to save the move as object will not be created for every request and we can use only single instance again and again.
The Factory Design Method
The factory pattern method can be defined as definition for the abstract class or interface class with which we can create object, but the subclass will be responsible for deciding the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here