Search in sources :

Example 1 with 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;
}
Also used : PetiteConfig(jodd.petite.PetiteConfig)

Example 2 with 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;
}
Also used : PetiteConfig(jodd.petite.PetiteConfig)

Example 3 with 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);
}
Also used : ProxyProxetta(jodd.proxetta.impl.ProxyProxetta) ProxettaAwarePetiteContainer(jodd.petite.proxetta.ProxettaAwarePetiteContainer) PetiteConfig(jodd.petite.PetiteConfig) AutomagicPetiteConfigurator(jodd.petite.config.AutomagicPetiteConfigurator) Before(org.junit.Before)

Example 4 with PetiteConfig

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);
}
Also used : ProxyProxetta(jodd.proxetta.impl.ProxyProxetta) PetiteConfig(jodd.petite.PetiteConfig) PetiteProxettaContainer(jodd.proxetta.petite.data.PetiteProxettaContainer) Before(org.junit.Before)

Aggregations

PetiteConfig (jodd.petite.PetiteConfig)4 ProxyProxetta (jodd.proxetta.impl.ProxyProxetta)2 Before (org.junit.Before)2 AutomagicPetiteConfigurator (jodd.petite.config.AutomagicPetiteConfigurator)1 ProxettaAwarePetiteContainer (jodd.petite.proxetta.ProxettaAwarePetiteContainer)1 PetiteProxettaContainer (jodd.proxetta.petite.data.PetiteProxettaContainer)1