or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
Sorry!
More Buying Choices
36 used & new from $19.65

Have one to sell? Sell yours here
 
   
Java Reflection in Action (In Action series)
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Java Reflection in Action (In Action series) (Paperback)

~ (Author), Nate Forman (Author)
4.6 out of 5 stars  See all reviews (12 customer reviews)

List Price: $44.95
Price: $32.81 & this item ships for FREE with Super Saver Shipping. Details
You Save: $12.14 (27%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Friday, November 13? Choose One-Day Shipping at checkout. Details
20 new from $25.96 16 used from $19.65

Frequently Bought Together

Java Reflection in Action (In Action series) + Java Generics and Collections + Java Concurrency in Practice
Price For All Three: $93.69

Show availability and shipping details

  • This item: Java Reflection in Action (In Action series) by Ira R. Forman

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Java Generics and Collections by Maurice Naftalin

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Java Concurrency in Practice by Brian Goetz

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Java Concurrency in Practice

Java Concurrency in Practice

by Brian Goetz
4.8 out of 5 stars (60)  $37.79
Java Web Services: Up and Running

Java Web Services: Up and Running

by Martin Kalin
4.5 out of 5 stars (13)  $23.09
Effective Java (2nd Edition)

Effective Java (2nd Edition)

by Joshua Bloch
4.9 out of 5 stars (36)  $36.17
Java Persistence with Hibernate

Java Persistence with Hibernate

by Gavin King
3.6 out of 5 stars (64)  $37.79
Maven: The Definitive Guide

Maven: The Definitive Guide

by Sonatype Company
3.9 out of 5 stars (7)  $23.09
Explore similar items

Editorial Reviews

Review

"Exceptional coverage of an area . . . that is generally poorly covered and often misunderstood." -- JavaRanch.com

"Well-written . . . presents a difficult topic in a clear and comprehensible fashion." -- Computing Review


Product Description

Explaining the Java Reflection API and providing techniques for using it successfully, this guide describes the capabilities that allow a program to examine and modify itself at runtime. The book examines the java.lang.reflect package, explains how you can benefit from its use, and includes a detailed discussion of Java’s dynamic proxy facility. The authors also address less obvious reflective capabilities, such as call stack introspection and the Java class loader. You’ll learn the various ways to use Reflection to generate code and work around the API’s limitations. The book also focuses on performance analysis techniques as well as patterns, and features a peek at what’s new in JDK 1.5. The book begins with simple, teachable examples that allow you to observe the concepts in action and then progresses to more complex examples that relate to problems programmers encounter every day. The authors provide valuable insight into how you can easily solve these problems using Reflection.

Product Details

  • Paperback: 300 pages
  • Publisher: Manning Publications; illustrated edition edition (October 2004)
  • Language: English
  • ISBN-10: 1932394184
  • ISBN-13: 978-1932394184
  • Product Dimensions: 9.1 x 7.2 x 0.8 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (12 customer reviews)
  • Amazon.com Sales Rank: #575,514 in Books (See Bestsellers in Books)

More About the Author

Ira R. Forman
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Ira R. Forman Page

What Do Customers Ultimately Buy After Viewing This Item?

Java Reflection in Action (In Action series)
87% buy the item featured on this page:
Java Reflection in Action (In Action series) 4.6 out of 5 stars (12)
$32.81
Spring in Action
4% buy
Spring in Action 4.1 out of 5 stars (67)
$31.49
Java Concurrency in Practice
3% buy
Java Concurrency in Practice 4.8 out of 5 stars (60)
$37.79
Java(TM) Puzzlers: Traps, Pitfalls, and Corner Cases
3% buy
Java(TM) Puzzlers: Traps, Pitfalls, and Corner Cases 4.5 out of 5 stars (30)
$36.71

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

12 Reviews
5 star:
 (8)
4 star:
 (3)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (12 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
10 of 11 people found the following review helpful:
5.0 out of 5 stars Outstanding guide to reflection, December 8, 2004
By Thomas Paul (Plainview, NY USA) - See all my reviews
(REAL NAME)      
There are only a handful of books that every Java programmer should own. This book manages to enter into that elite group of books by providing exceptional coverage of an area of Java programming that is generally poorly covered and often misunderstood. Reflection is a topic that many programmers know about but don't truly understand. Reflection can provide simple ways to get out of complex problems, which makes it well worth knowing. Reflection is one of those tools that you never knew you needed until you learn it.

The authors of this book are a father/son team that have been working with reflection for years. They attack reflection in small pieces, making each topic crystal clear before moving on to the next. In keeping with the "action" from the title, the authors show examples of each aspect of reflection, breaking down each line of code with complete explanations.

The book starts with the basics of reflection, looking at how to examine a class at runtime and dynamically load it. The book then moves on to demonstrating how to use the Proxy class. Later chapters show how to examine the call stack, customize class loaders, and transform one class into another. Performance is covered with a chapter that gives some good examples of benchmarking the cost of using reflection. The book ends with a look at the impact of Java 1.5 on reflection.

The best advice I can give is, buy this book. You will be amazed at the things that you didn't know you could do with Java.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
4 of 4 people found the following review helpful:
5.0 out of 5 stars A practical "how to" manual for applying reflection , December 5, 2004
By Midwest Book Review (Oregon, WI USA) - See all my reviews
Java Reflection In Action by the collaborative team of Ira and Nate Forman is a practical "how to" manual for applying reflection to computer programming. Reflection is the ability of a running program to look at itself and its environment, and change what it does according to what it sees. It is an inbuilt feature of the Java language and allows one to sidestep a common source of maintenance woes. Java Reflection In Action walks the programmer through a complete understanding of reflection and some of the most useful reflective solutions to replace "hard-coded" ones. An excellent self-teaching resource for intermediate to advanced students and practitioners of Java programming, Java Reflection In Action is packed from cover to cover with examples, flowcharts, sample code, and more, all effectively designed to facilitate instruction.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 9 people found the following review helpful:
4.0 out of 5 stars Almost great , January 4, 2006
By wiredweird "wiredweird" (Earth, or somewhere nearby) - See all my reviews
(TOP 100 REVIEWER)   
Amazon Verified Purchase(What's this?)
This book presents an unusual but surprisingly important Java API, the one that underlies component technologies, dynamic loading, and more. Reflection isn't just for ubergeeks writing debuggers and similarly gutsy applications, it can help with everyday tasks of many kinds. The Formans show how, using many examples and a friendly but technically dense style.

The book covers all the basics. It starts with the whole idea of metaprogramming, writing programs about programs. Maybe it sounds involuted, but the first two chapters show how it works for handling the basic features of an application, the methods and fields. The next topics cover object creation: first, objects of classes that already exist, then classes created on the fly using Java's Proxy mechanism. A little later, they cover class loaders and custom loaders in the clearest, best-motivated discussion I've seen anywhere. The chapter on Design Patterns is, as in so many books, somewhat perfunctory. I've used reflection to analyze DPs in running programs, so I found that chapter disappointing. The last chapter begs to be rewritten. This book was in production when Java 5 was on the horizon, but issued after Java 5 hit the streets. Java 5 introduced many new features such as annotation, and new reflective APIs to support them. That last chapter looks forward to features that have since become real - not a fault of the authors', but enough reason for a second edition.

There are some real problems in this book, though. A minor one is that the reflection API isn't actually laid out entire anywhere in the discussion, but JavaDoc will take care of that for you. More importantly, serialization is a crucial part of the component technologies that reflection supports. This book largely disregards the standard APIs and SPIs in favor of an ad hoc, roll-your-own approach. Trust me, that's a bad idea. See Halloway's aging 'Component Development' book or old editions of 'Java in a Nutshell' for much more complete treatment of real serialization. Part of the problem in this treatment of serialization is its weak discussion of the inheritance hierarchy: when serializing a subclass, you have access to only half of an object. The superclass[es] is[are] the other half, and may have private data that the subclass can't serialize on its own. This weakness recurs in an otherwise interesting discussion on checking of invariants. The approach in this book seems to forget that the subclass invariants are only half of the object invariants, and the superclass is not handled. Also, as Szyperski notes, invariants interact subtly with callbacks, a discussion conspicuous by its absence.

This is an advanced book that Java newbies might not benefit from, and I don't mean that as a criticism. It's for experienced programmers with big, complex problems. It's for dynamic, extensible systems, the kind that we all want to work on. Even though it's Java-based, it's for anyone programming in any reflective language, at least until your language gets its own version of this book. Despite some significant problems, I recommend this book highly.

//wiredweird
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars Reflect upon more flexible ways to write Java code
I first ran across the concept of reflection in Java in Cornell's Core Java book back when I was first learning the Java programming language in 1998. Read more
Published 20 months ago by calvinnme

3.0 out of 5 stars Nice Firework
This book starts great, brilliant and clear, and then crushes and burns to a cold, dark, inglorious end. The first six chapters are very well written and informative. Read more
Published on December 9, 2006 by Riccardo Audano

5.0 out of 5 stars Neat little guide to reflective programming
Java Reflection is an extremely powerful API that most modern frameworks like Spring, Hibernate, XFire, JUnit etc., use as its core enabling technology. Read more
Published on May 2, 2006 by Ganeshji Marwaha

5.0 out of 5 stars Must have for any Java developer
If, for any reason I had to keep only 10 Java books, this one would have made this list. It's consise, up to the point and covers not only Java reflection, but many other... Read more
Published on January 23, 2006 by Yakov Fain

5.0 out of 5 stars Excellent guide to reflection and reflection in java
The authors know a great deal about reflection in general and use it to ground a clear, detailed explanation of how to use reflection in Java. Read more
Published on December 17, 2005 by rdf

5.0 out of 5 stars Add this to your Java library
I purchased this book with the idea that it would provide insight into some of the lesser known qualities of Java, and this book did. Read more
Published on April 2, 2005 by W. T. Everette III

5.0 out of 5 stars A MUST for every Java Programmer
This book gives a complete overview of the reflection concepts and its use in Java. Nowadays reflection is a topic that every programmers have to cope with but few of them really... Read more
Published on March 15, 2005 by Walter Cazzola

4.0 out of 5 stars Well organized, and written introduction to reflection
This is a well thought out introduction to reflection in Java. It steps through the API from dynamic object creation, through type, method and field inspection. Read more
Published on December 28, 2004 by Jack D. Herrington

5.0 out of 5 stars If only it could do everything marketing promised.
I spend most of my life re-doing old code that for some reason needs to be expanded, changed, fixed or whatever. Read more
Published on November 19, 2004 by John Matlock

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.