作者: Ian Welch , Robert J. Stroud
DOI:
关键词:
摘要: Many authors have proposed using byte code rewriting as a way of adapting or extending the behaviour Java classes. There are toolkits available that simplify this process and raise level abstraction above code. However, to best our knowledge, none these provide complete model behavioural reflection for Java. In paper, we describe how used load-time techniques construct run-time metaobject protocol can be adapt customise classes in more flexible abstract way. Apart from providing better semantic basis techniques, approach also has advantage over other reflective implementations it doesn't require modified compiler JVM, operate on rather than source cannot bypassed. paper implementation Kava, Java, discuss some linguistic issues technical challenges involved implementing such tool top standard JVM. Kava is http://www.cs.ncl.ac.uk/research/dependability/reflection.