Home            Contact us            FAQs
    
      Journal Home      |      Aim & Scope     |     Author(s) Information      |      Editorial Board      |      MSP Download Statistics

     Research Journal of Applied Sciences, Engineering and Technology


A Design Pattern Approach to Improve the Structure and Implementation of the Decorator Design Pattern

1Bilal Hussein and 2Aref Mehanna
1Institute of Technology, Lebanese University, Saida
2Faculty of Economics and Business Administration, Lebanese University, Aaley, Lebanon
Research Journal of Applied Sciences, Engineering and Technology  2016  5:416-421
http://dx.doi.org/10.19026/rjaset.13.2961  |  © The Author(s) 2016
Received: April ‎5, ‎2016  |  Accepted: June ‎7, ‎2016  |  Published: September 05, 2016

Abstract

Reusability is a technique used to unify the abstract representation of real world entities. In object-oriented design and programming, inheritance mechanism plays an important role in software reusability. The Decorator Design Pattern (DDP), invented by GoF, was an alternative solution to the inheritance mechanism. It uses the concept of decorating objects instead of inheritance. The aim of this study is to present the DDP, showing its advantages and disadvantages and offer a new innovative approach, called Decorator Pattern Approach (DPA), in order to improve the structure and implementation of DDP. The main objective of DPA is to provide a way to separate, dynamically, the decorating objects from the objects to decorate.

Keywords:

Decorator, design pattern, Decorator Pattern Approach (DPA), inheritance, Object Oriented Design (OOD), reusability,


References

  1. Albalooshi, F., 2015. Software design concerns associated with simulating multiple inheritance in java for implementation purposes. Brit. J. Math. Comput. Sci., 6(5): 435-443.
    Direct Link
  2. Alvaro, A., E.S. De Almeida and S.L. Meira, 2006. A software component quality model: A preliminary evaluation. Proceeding of the 32nd EUROMICRO Conference on Software Engineering and Advanced Applications (EUROMICRO'06). Cavtat, Dubrovnik, pp: 28-37.
    Direct Link
  3. Debboub, S. and D. Meslati, 2013. Quantitative and qualitative evaluation of AspectJ, JBoss AOP and CaesarJ, using Gang-of-Four design patterns. Int. J. Softw. Eng. Appl., 7(6): 157-174.
    Direct Link
  4. Gamma, E., R. Helm, R. Johnson and J. Vlissides, 1995. Design Patterns: Elements of Resuable Object-Oriented Software. Pearson Education Ltd., England.
    Direct Link
  5. Goyal, N. and E.D. Gupta, 2014. Reusability calculation of object oriented software model by analyzing CK metric. Int. J. Adv. Res. Comput. Eng. Technol., 3(7): 2466-2470.
    Direct Link
  6. Grady, B., R. James and J. Ivar, 1998. The Unified Modeling Language User Guide. 1st Edn., Addison Wesley.
  7. Narwal, A., 2012. Empirical evaluation of metrics for component based software systems. Int. J. Latest Res. Sci. Technol., 1(4): 373-378.
    Direct Link
  8. Pavlic, L., V. Podgorelec and M. Hericko, 2014. A question-based design pattern advisement approach. Comput. Sci. Inf. Syst., 11(2): 645-664.
    Direct Link
  9. Varsha, M. and Y. Shweta, 2013. Reusability evaluation of object oriented inheritance and interface code. Eng. Univ., Sci. Res. Manage., 5(2).

Competing interests

The authors have no competing interests.

Open Access Policy

This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Copyright

The authors have no competing interests.

ISSN (Online):  2040-7467
ISSN (Print):   2040-7459
Submit Manuscript
   Information
   Sales & Services
Home   |  Contact us   |  About us   |  Privacy Policy
Copyright © 2024. MAXWELL Scientific Publication Corp., All rights reserved