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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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