use of jodd.petite.PetiteConfig in project jodd by oblac.
the class PetiteHelper method createPetiteConfig.
public static PetiteConfig createPetiteConfig() {
PetiteConfig petiteConfig = new PetiteConfig();
petiteConfig.setDetectDuplicatedBeanNames(true);
petiteConfig.setWireScopedProxy(true);
petiteConfig.setDetectMixedScopes(true);
return petiteConfig;
}
use of jodd.petite.PetiteConfig in project jodd by oblac.
the class PetiteHelper method createPetiteConfig.
public static PetiteConfig createPetiteConfig() {
PetiteConfig petiteConfig = new PetiteConfig();
petiteConfig.setDetectDuplicatedBeanNames(true);
petiteConfig.setWireScopedProxy(true);
petiteConfig.setDetectMixedScopes(true);
return petiteConfig;
}
use of jodd.petite.PetiteConfig in project jodd by oblac.
the class MixedScope343Test method setupPetiteContainer.
@Before
public void setupPetiteContainer() {
PetiteConfig petiteConfig = PetiteHelper.createPetiteConfig();
ProxyProxetta proxyProxetta = PetiteHelper.createProxyProxetta();
petiteContainer = new ProxettaAwarePetiteContainer(proxyProxetta, petiteConfig);
AutomagicPetiteConfigurator petiteConfigurator = new AutomagicPetiteConfigurator();
petiteConfigurator.setIncludedEntries(this.getClass().getPackage().getName() + ".*");
petiteConfigurator.configure(petiteContainer);
}
use of jodd.petite.PetiteConfig in project jodd by oblac.
the class WireBeansWithProxettaTest method setupPetiteContainer.
@Before
public void setupPetiteContainer() {
PetiteConfig petiteConfig = PetiteHelper.createPetiteConfig();
ProxyProxetta proxyProxetta = PetiteHelper.createProxyProxetta();
petiteContainer = new PetiteProxettaContainer(proxyProxetta, petiteConfig);
//AutomagicPetiteConfigurator petiteConfigurator = new AutomagicPetiteConfigurator();
//petiteConfigurator.configure(petiteContainer);
petiteContainer.registerPetiteBean(Bean1.class);
petiteContainer.registerPetiteBean(Bean2.class);
}
Aggregations