Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /** 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;
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }
Ejemplo n.º 4
0
 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;
 }