DocumentCode
1127143
Title
Experience with statically-generated proxies for facilitating Java runtime specialisation
Author
Renaud, K.
Author_Institution
Dept. of Comput. Sci., Glasgow Univ., UK
Volume
149
Issue
6
fYear
2002
fDate
12/1/2002 12:00:00 AM
Firstpage
169
Lastpage
176
Abstract
Issues pertaining to mechanisms which can be used to change the behaviour of Java classes at runtime are discussed. The proxy mechanism is compared to, and contrasted with other standard approaches to this problem. Some of the problems the proxy mechanism is subject to are expanded upon. The question of whether statically-developed proxies are a viable alternative to bytecode rewriting was investigated by means of the JavaCloak system, which uses statically-generated proxies to alter the runtime behaviour of externally-developed code. The issues addressed include ensuring the type safety, dealing with the self problem, object encapsulation, and issues of object identity and equality. Some performance figures are provided which demonstrate the load the JavaCloak proxy mechanism places on the system.
Keywords
Java; inheritance; object-oriented programming; rewriting systems; Java; JavaCloak; bytecode rewriting; inheritance; object encapsulation; object equality; object identity; object-oriented programming; reflection; runtime specialisation; statically-generated proxy; type safety;
fLanguage
English
Journal_Title
Software, IEE Proceedings -
Publisher
iet
ISSN
1462-5970
Type
jour
DOI
10.1049/ip-sen:20020909
Filename
1167720
Link To Document