Name: skT88420 Date: 02/17/2000
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
Feature to discover all subclasses of some base class, even if this would be
limited to all subclasses present in one package. This would enable us to make
a factory of instances without hardcoding the classnames in the factory class,
they could be instantiated through reflection...
Example
Person -> Employee
-> Manager
It would be nice to discover you can do something with employees or managers,
and when a class Customer is added, the application can discover this
dynamically.
(Review ID: 101370)
======================================================================
- duplicates
-
JDK-4295718 (reflect) No method to scan for classes under a package
- Closed