DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Zeb Fropiaz Guest

    Dynamic Class Loading & Design Patterns


    Hi!

    I need to know how can I use prototype or other design patterns to dynamically
    load classes in Java. Any useful resources, or other help would be appreciated.
    Thanx.

    Fropiaz

  2. #2
    Joe Kauzlarich Guest

    Re: Dynamic Class Loading & Design Patterns


    "Zeb Fropiaz " <aik__1@hotmail.com> wrote:
    >
    >Hi!
    >
    >I need to know how can I use prototype or other design patterns to dynamically
    >load classes in Java. Any useful resources, or other help would be appreciated.
    >Thanx.
    >
    >Fropiaz


    I'm not sure I understand whether your source of confusion comes from design
    patterns or dynamically loading classes. If it is the second one, then use
    the java reflection api (java.reflect.*). Briefly, you can use Class dynamicLoaded=Class.forName("ClassName"),
    and check the api javadocs for java.reflect.Method and java.reflect.Constructor,
    etc. Tell me if I answered the wrong question. -JK


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links