/** * Defines if mixed scopes should be detected as errors. If {@link #wireScopedProxy} is not set, * then enabling this flag will throw an exception on mixed scopes. If {@link #wireScopedProxy} is * set enabling this flag will just issue a warn message in the log. Only available with Proxetta. */ public void setDetectMixedScopes(boolean detectMixedScopes) { if (Jodd.isProxettaLoaded() == false) { log.warn("Feature not available without Proxetta"); return; } this.detectMixedScopes = detectMixedScopes; }
/** Defines if scoped proxies should be wired. Only available with Proxetta. */ public void setWireScopedProxy(boolean wireScopedProxy) { if (Jodd.isProxettaLoaded() == false) { log.warn("Feature not available without Proxetta"); return; } this.wireScopedProxy = wireScopedProxy; }
/** * Specifies if <b>Paramo</b> tool should be used to resolve method and ctor argument names. If * <b>Paramo</b> is not available, this property can't be set (i.e. will be always <code>false * </code>). */ public void setUseParamo(boolean useParamo) { if (Jodd.isProxettaLoaded() == false) { log.warn("Feature not available without Proxetta"); return; } this.useParamo = useParamo; }
public PetiteConfig() { defaultScope = SingletonScope.class; defaultWiringMode = WiringMode.STRICT; detectDuplicatedBeanNames = false; resolveReferenceParameters = true; useFullTypeNames = false; lookupReferences = new PetiteReference[] { PetiteReference.NAME, PetiteReference.TYPE_SHORT_NAME, PetiteReference.TYPE_FULL_NAME }; useParamo = Jodd.isProxettaLoaded(); wireScopedProxy = false; detectMixedScopes = false; }