[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/1593105.1593165acmotherconferencesArticle/Chapter ViewAbstractPublication Pagesacm-seConference Proceedingsconference-collections
research-article

Using Java's generics mechanism to improve type safety in the command pattern

Published: 28 March 2008 Publication History

Abstract

This paper discusses ways in which Java's generics mechanism can be used to improve a Remote Procedure Call implementation using the Command and Proxy patterns. Specifically, it shows how generics can be used to specify return types and receiver types.

References

[1]
A. Alexandrescu. Modern C++ Design: Generic Programming and Design Patterns Applied. Addison-Wesley Publishing Company, Reading, Massachusetts, 2001.
[2]
G. Bracha, M. Odersky, D. Stoutamire, and P. Wadler. SIGPLAN: ACM Special Interest Group on Programming Languages, 1998.
[3]
C. Fox. Introduction to Software Engineering Design: Processes, Principles and Patterns with UML2. Addison-Wesley Publishing Company, Reading, Massachusetts, 2006.
[4]
E. Gamma, R. Helm, R. Johnson, and J. Vlissides. Design Patterns:Elements of Reusable Object-Oriented Software. Addison-Wesley Publishing Company, Reading, Massachusetts, 1995.
[5]
J. Gosling, B. Joy, G. Steele, and G. Bracha. Java Language Specification. Prentice Hall, Upper Saddle River, 2005.
[6]
A. Langer. Java generics frequently asked questions. http://www.angelikalanger.com/GenericsFAQ/JavaGenericsFAQ.html, 2007.
[7]
M. Norton. Composing software design patterns. Master's thesis, James Madison University, 2003.
[8]
M. Torgersen. The expression problem revisited: Four new solutions using generics. ECOOP, 2004.

Index Terms

  1. Using Java's generics mechanism to improve type safety in the command pattern

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    ACMSE '08: Proceedings of the 46th annual ACM Southeast Conference
    March 2008
    548 pages
    ISBN:9781605581057
    DOI:10.1145/1593105
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 28 March 2008

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. RPC
    2. command pattern
    3. proxy pattern

    Qualifiers

    • Research-article

    Conference

    ACM SE08
    ACM SE08: ACM Southeast Regional Conference
    March 28 - 29, 2008
    Alabama, Auburn

    Acceptance Rates

    Overall Acceptance Rate 502 of 1,023 submissions, 49%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 216
      Total Downloads
    • Downloads (Last 12 months)1
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 14 Dec 2024

    Other Metrics

    Citations

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media