I have the need of getting the Class
from a String
.
The string is just the class his name without the package declaration.
While I could use Class.forName(className);
this requires me to give the FQN.
Here is just where I have the problem.
I know its base package : be.chillworld.catalog
but this package have subpackages.
Example :
be.chillworld.catalog.location
be.chillworld.catalog.operation
Easiest solution is to remove all the subpackages so I can do the Class.forName()
but there goes the nice structure then.
Anyone have an idea of how to get mine specific class?