Is it possible to make Class.forName ("") flexible?

Before asking, please understand that my English is not very good.

I use a class Class.forName(...)in servlet programming. when I access the servlet, I get a string of detailed information about the controller from the database indicating which controller to use.

This is Class.forName(...)me encoded:

Class c = Class.forName(row.getControllerInfo);
c.newInstance();

This works great, but there is a problem, I am using Eclipse. The problem is that when I modified the Controller file, the changed content was not applied to the server.

+5
source share
3 answers

, - . - , . JRebel ( ).

, " ". .

+2

, , . eclipse, .

0

- , ?

0

All Articles