Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2008, 12:03 PM
Member
 
Join Date: Jul 2008
Posts: 1
Rep Power: 0
escuja is on a distinguished road
Default Get name of available classes
Hi guys.
I'm not sure i that's the right category for my question, if not maybe someone can move it, sorry 'bout that.

My Question:
I'm currently working on a SUNSpots project. And i'm wondering if it's in general possible to get at runtime the classes(or at least the names of the classes) belonging to a package.

So my scenario:
I got a package ('moves' for example) containig an interface and some classes implementing that interface, e.g. 'MoveRight', 'MoveLeft' etc.
Now i want to know if it's possible to implement a method that just returns me all the names of the classes in the package 'moves'. I saw an example for Java1.5, that worked with the classloader and read all files from a resource (the subdirectory). But afaik there's no way in JavaME to access the classloader.

Anyone got an idea how to solve my problem?

Thanks, greetings

Chris
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant run my classes Assaf A Eclipse 1 04-22-2008 02:31 PM
Help with classes freswood New To Java 5 04-21-2008 03:28 PM
Using a JAR from other classes Joe2003 Advanced Java 1 01-02-2008 07:08 PM
wrapper classes sireesha New To Java 5 12-11-2007 09:45 PM
When do we use inner classes? cruxblack New To Java 5 08-10-2007 05:00 PM


All times are GMT +2. The time now is 10:05 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org