The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java Reflection - A dummies question

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jumbo Bubla

Posts: 28
Nickname: arjunram
Registered: Aug, 2003

Arjun Ram is lead developer with Daimler Chrysler
Java Reflection - A dummies question Posted: Aug 20, 2003 9:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Jumbo Bubla.
Original Post: Java Reflection - A dummies question
Feed Title: Blog for thought
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Mental Projection of my digital self
Latest Java Buzz Posts
Latest Java Buzz Posts by Jumbo Bubla
Latest Posts From Blog for thought

Advertisement
My question is pretty simple - how does one figure out given a method name what the parametypes are?

The only way that I can think of using reflection is as follows
Class cls = Class.forName("com.reporting.beans.AssetBean");
Method meth[];
meth = cls.getDeclaredMethods();
Class[] parameterTypes = meth[o].getParameterTypes()

Are there are any other ways ?

Read: Java Reflection - A dummies question

Topic: Unexpected scary hardware messages Previous Topic   Next Topic Topic: Software is never perfect.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use