arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Artificial Intelligence

APM Reflective Java: Making Java

Castle Park, Cambridge Cb Rd, Zhixue Wu, Scarlet Schwiderski, Zhixue Wu, Scarlet Schwiderski

See on the map

Abstract

Java has become popular as a programming language for the Internet because of its ability to simplify the development of flexible, portable applications with graphical user interfaces. Using Java, users can write a program once and run it on any platform. However, Java lacks a good mechanism to support integration of system software, which is required by new applications such as mobile computing, networked interactive multimedia and network programming. In this paper, we present the Reflective Java project which aims to enable Java-powered systems to be customised dynamically, flexibly and transparently to cater for the particular requirements of an application, or changes in its run-time environment. Reflective Java enables metalevel programming of systems functions as wrappers around method calls. Using metalevel programming, a clear separation can be made between those parts of an application that are concerned with implementing its basic functionality and those parts that are concerned with addressing system issues. Thus, it becomes possible to change the quality of application delivery through alternative infrastructures without disturbing the application components. We first explain how to use a metaobject protocol to achieve flexibility and customisability. Then we show how reflection can be obtained without making any change to the Java language, its compiler or its virtual machine. As an example, an object transaction service is described to demonstrate the benefits and feasibility of Reflective Java.

More like this