Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reflection API in EJB

843829Aug 9 2002 — edited Aug 12 2002
Hi,
In my BMP, i am doing some validation using Reflection API.

I want to know whether Reflection API put some extra burden on EJB.

Also i am confused how exactly reflection is carried out.

In general i know that it Introspects class and gives all information about class. BUT exactly in what manner.
I have info of how i can use reflection, Like I can get Class , get Object , get Method , Invoke Method , Field , set or get field values etc.

But what i am confused about its cost.
Why reflection API is costly?

So please tell me exact procedure followed OR exact Algorithm used inside Reflection API.

So that I can compare
method call on object without reflection
VS
method call usinf invoke() method on Method class using reflection API.

Thanks,
Viren.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2002
Added on Aug 9 2002
4 comments
217 views