
Java Reflection in Action
Год: 2005
Автор: Ira R. Forman, Nate Forman
Жанр: Практическое пособие
Издательство: Manning Publications Co
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 297
Описание: Java Reflection in Action is unique in presenting a clear account of all the cool things you can do with reflection, and at the same time providing the sound conceptual basis that developers need to create advanced applications. The book includes careful explanations of sometimes perplexing programming techniques along with enough background to understand how to extend and vary them. This book overcomes reflection’s reputation as a mysterious and esoteric philosophical pursuit, or as a set of messy error-prone coding tricks.
As reflection becomes increasingly common and useful in all sorts of applications, it is great to finally have a book that features disciplined yet still creative and fun software engineering practices based on reflection. Even occasional users will immediately adopt the book’s patterns and idioms to solve common problems. Many of the examples can be directly adapted for customized solutions in diverse areas such as XML processing, automated software testing, and program analysis tools. Readers will also find underlying rationales for code performing introspection, proxies, class loading, and so on, that are often seen but not often explained well in everyday Java programs. And even experts will find new ideas and well-thought out advice for using some of the more subtle aspects of reflection. — Prof. Doug Lea, SUNY Oswego, author of Concurrent Programming in Java
A few basics
Accessing fields reflectively
Dynamic loading and reflective construction
Using Java's dynamic proxy
Call stack introspection
Using the class loader
Reflective code generation
Design patterns
Evaluating performance
Reflecting on the future
Reflection and metaobject protocols
Handling compilation errors in the "Hello world!" program
UML
glossary
references
index
Опубликовано группой