mercredi 25 mars 2015

nested @Configuration does not pick up parent beans on wiring itself

The configuration below seems to work while no actual library bean is required. When it does need to create LibConfig, it cannot inject EntityManagerFactory or other beans which do exist in the parent.


Is not the child supposed to "see" the parent beans? Do I need to @ExternalBean flag them? I cannot find the annotation.


Thanks, Nicu



@Configuration
@Import(AppModuleConfig.class)
public class AccountsComposedConfig {

@Configuration
@Import(LibConfig.class)
public static class DynaConfig {
}
}

Aucun commentaire:

Enregistrer un commentaire