Skip to main content

JavaCloak: Reflecting on Java Typing for Class Reuse Using Proxies

  • Conference paper
  • First Online:
  • 290 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2192))

Abstract

We discuss problems caused by the limitations of Java’s reflection mechanism in supporting the specialisation of run-time program behaviour in Java-Cloak. JavaCloak allows programmers to specialise the run-time behaviour of externally-developed code by using pre-generated source-level proxy objects. These proxy objects are of the same type as the original objects that they wrap. The runtime specialisation is achieved in two phases. Firstly, the programmer generates the proxies and tailors them to their local needs. The programmer then generates a JAR file of these proxy classes which is placed at the very start of the application's CLASSPATH variable. The virtual machine is thus diverted into loading the proxy classes instead of the original classes. At runtime the Java-Cloakrun time system accesses the wrapped classes and mediates object creation and method calls across the proxy/original boundary.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Renaud, K., Evans, H. (2001). JavaCloak: Reflecting on Java Typing for Class Reuse Using Proxies. In: Yonezawa, A., Matsuoka, S. (eds) Metalevel Architectures and Separation of Crosscutting Concerns. Reflection 2001. Lecture Notes in Computer Science, vol 2192. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45429-2_24

Download citation

  • DOI: https://doi.org/10.1007/3-540-45429-2_24

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-42618-9

  • Online ISBN: 978-3-540-45429-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics