主权项 |
1. A computer implemented method, the method comprising:
reading, from a file stored in a memory, configurations of a Java component, based on the configurations, generating annotations to be injected into the Java component, and at runtime:
a processor injecting the annotations into a compiled source code of the Java component, while original source code of the Java component remains unchanged by the injected annotations, wherein injecting the annotations into the compiled source code of the Java component comprises:
intercepting a class loading process in a container;detecting class loading of a class file of the java component;injecting the annotations into the class file of the Java component;dynamically updating the configurations corresponding to the compiled source code of the Java component while the original source code of the Java component remains unchanged; andbased on the updated configurations, dynamically modifying the annotations to be injected into the compiled source code of the Java component without recompiling the Java component. |