Browse > Article
http://dx.doi.org/10.6109/jkiice.2007.11.3.500

Resolving the Runtime Class Reference Problem of the Type Object Design Pattern by Type Object Class  

Kim, Yun-Ho (안동대학교 전자정보산업학부)
Abstract
The Type Object Design Pattern is proposed to provide a solution on the situation in the case that one class has too many subclasses or the number of subclasses are undefined. Although this pattern has many advantages in terms of applicability and dynamic object behavior, it has a weak point in runtime pattern operation that it has to build and maintain a class reference mechanism in runtime to reference the class (de facto 'object') of instances. To solve that problem, this paper addresses the solution of the runtime class reference problem of Type Object Pattern. it defines a new class of Type Object Class (TOC) from Type Class and Object Class in Type Object pattern and presents the methods of creating, compiling, and memory-loading the TOC. It depends on built-in class reference mechanism of object-oriented programming language, and is not necessary to fit with the additional mechanism. Consequently, we need not to set up the additional class reference mechanism and system performance is enhanced due to it.
Keywords
Software Design Pattern; Object-Oriented Design; Object-Oriented Software System; Java Programming Language;
Citations & Related Records
연도 인용수 순위
  • Reference
1 Hunter and Thomas, The Pragmatic Programmer, Addison-Wesley, 2000
2 Johnson and Woolf, 'Type Object,' Pattern Languages of Programming, vol. 3, pp.47-65, Addison-Wesley 1997
3 Rettig and Fowler, 'Reflection vs. Code Generator,' Java World Magazine, vol. 6, no. 11, 2001
4 Gamma, Richard, Ralph, and Vlissides, Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley, 1995
5 Martin and Odell, Object-Oriented Methods: A Foundation, Prentice-Hall, 1998
6 Odell, J., 'Object Types as Objects and Vice Versa,' Journal of Object-Oriented Programming, vol.4, Issue 6, 45-48, 1992
7 Rumbaugh, Jacboson, and Booch, The Unified Modeling Language Reference Manual, Addison-Wesley, 1999
8 Kiczales, Rivieres, and Bobrow, The Art of the Metaobject Protocol, MIT press, 1991
9 James Noble, 'Prototype-Based Object System,' Pattern Languages of Programming, vol. 4, 53-71, 2000
10 Coad, P., 'Object-Oriented Patterns,' CACM, vol. 35, no. 9, 1992