| | |
When would one ever use the Method class?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I looked up the method class and thought that it might be useful, but unfortunately Method objects must be public to be invoked.
I'm just curious of when I'd actually really need to use the Method class. Maybe to create an array that used a type of algorithm to fire different methods?
Sorry if this is too vague. I'm just really curious.
I'm just curious of when I'd actually really need to use the Method class. Maybe to create an array that used a type of algorithm to fire different methods?
Sorry if this is too vague. I'm just really curious.
•
•
Join Date: Jan 2008
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
I'm not quite familiar with java.lang.Reflect , honestly I've only dabbled with that class through experimentation.
I.E., when it came to creating generic-based methods.
What is the primary usage of the Reflect package?
I use it for report generation, when the report layout depends on what state the user is in (retrieved from a database). The basic data is the same, so each state's version is just a subclass of a more generic report class.
![]() |
Similar Threads
- Stopping a very time consuming class method's execution on tomcat server using JSP. (JSP)
- C++ derived class virtual functions (C++)
- calling a method from another class (Java)
- How can i call my FileOutput method to output the array ?? really confused... (Java)
- Confused writing a Java Class (Java)
- Question about read method of InputStream (Java)
- Basic problem calling methods within a class (Java)
- Accessing a variable of another class (Java)
Other Threads in the Java Forum
- Previous Thread: Looking for good j2ee book/website
- Next Thread: Need suggestions: Update Checking, Score keeping, and Submitting scores online.
| Thread Tools | Search this Thread |
actionlistener android api applet application array arrays automation binary block bluetooth character chat class classes client code compile component consumer database desktop developmenthelp draw eclipse error event exception fractal freeze ftp game gameprogramming givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jmf jni jpanel julia lego linked linux list loop loops mac map method methods mobile netbeans newbie number online oracle print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update windows working





