java - How can a JSR 330 dependency injector verify dependencies at build time? -
i looking @ jsr 330 (javax.inject
) javadoc , confused following sentence:
moreover, injector can verify dependencies have been satisfied @ build time.
how possible?* implementations support this?
*i guessing there must code generation involved, how code know being compiled in order generate code necessary statically verify dependencies met?
spring framework support jsr-330 , can configured weaving @ compile time using aspectj compiler, means classes modified @ byte-code introduce dependency injection during compile phase. fault spring performs weaving @ runtime. see does spring aop compile time weaving or load time weaving?
Comments
Post a Comment