Package jodd.petite
Class PetiteConfig
- java.lang.Object
-
- jodd.petite.PetiteConfig
-
public class PetiteConfig extends java.lang.ObjectPetite configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected WiringModedefaultWiringModeprotected booleandetectDuplicatedBeanNamesprotected booleandetectMixedScopesprotected booleanimplicitParamInjectionprotected PetiteReferenceType[]lookupReferencesprotected booleanresolveReferenceParametersprotected booleanuseAltBeanNamesprotected booleanuseFullTypeNamesprotected booleanuseParamoprotected booleanwireScopedProxy
-
Constructor Summary
Constructors Constructor Description PetiteConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WiringModegetDefaultWiringMode()Returns default wiring mode.booleangetDetectDuplicatedBeanNames()Returnstrueif container detects duplicated bean names.PetiteReferenceType[]getLookupReferences()booleangetResolveReferenceParameters()Returnstrueif parameter references should be resolved.booleangetUseFullTypeNames()booleangetUseParamo()booleanisDetectMixedScopes()booleanisImplicitParamInjection()Returnstrueif implicit parameter injection is enabled.booleanisUseAltBeanNames()Returns if alternative bean names are in use.booleanisWireScopedProxy()protected WiringModeresolveWiringMode(WiringMode wiringMode)Resolves wiring mode by checking if default andnullvalues.PetiteConfigsetDefaultWiringMode(WiringMode defaultWiringMode)Specifies default wiring mode.PetiteConfigsetDetectDuplicatedBeanNames(boolean detectDuplicatedBeanNames)Specifies if an exception should be thrown if two beans with same exception are registered with this container.PetiteConfigsetDetectMixedScopes(boolean detectMixedScopes)Defines if mixed scopes should be detected as errors.voidsetImplicitParamInjection(boolean implicitParamInjection)Enables implicit parameter injection.PetiteConfigsetLookupReferences(PetiteReferenceType... lookupReferences)Specifies references for bean name lookup, when name is not specified, in given order.PetiteConfigsetResolveReferenceParameters(boolean resolveReferenceParameters)Defines if reference parameters should be resolved.PetiteConfigsetUseAltBeanNames(boolean useAltBeanNames)Enables alternative bean names.PetiteConfigsetUseFullTypeNames(boolean useFullTypeNames)Specifies if type names should be full or short.voidsetUseParamo(boolean useParamo)Specifies if Paramo tool should be used to resolve method and ctor argument names.PetiteConfigsetWireScopedProxy(boolean wireScopedProxy)Defines if scoped proxies should be wired.
-
-
-
Field Detail
-
implicitParamInjection
protected boolean implicitParamInjection
-
useAltBeanNames
protected boolean useAltBeanNames
-
defaultWiringMode
protected WiringMode defaultWiringMode
-
detectDuplicatedBeanNames
protected boolean detectDuplicatedBeanNames
-
resolveReferenceParameters
protected boolean resolveReferenceParameters
-
useFullTypeNames
protected boolean useFullTypeNames
-
lookupReferences
protected PetiteReferenceType[] lookupReferences
-
useParamo
protected boolean useParamo
-
wireScopedProxy
protected boolean wireScopedProxy
-
detectMixedScopes
protected boolean detectMixedScopes
-
-
Method Detail
-
isImplicitParamInjection
public boolean isImplicitParamInjection()
Returnstrueif implicit parameter injection is enabled.
-
setImplicitParamInjection
public void setImplicitParamInjection(boolean implicitParamInjection)
Enables implicit parameter injection.
-
isUseAltBeanNames
public boolean isUseAltBeanNames()
Returns if alternative bean names are in use.
-
setUseAltBeanNames
public PetiteConfig setUseAltBeanNames(boolean useAltBeanNames)
Enables alternative bean names.
-
getDefaultWiringMode
public WiringMode getDefaultWiringMode()
Returns default wiring mode.
-
setDefaultWiringMode
public PetiteConfig setDefaultWiringMode(WiringMode defaultWiringMode)
Specifies default wiring mode.
-
resolveWiringMode
protected WiringMode resolveWiringMode(WiringMode wiringMode)
Resolves wiring mode by checking if default andnullvalues.
-
getDetectDuplicatedBeanNames
public boolean getDetectDuplicatedBeanNames()
Returnstrueif container detects duplicated bean names.
-
setDetectDuplicatedBeanNames
public PetiteConfig setDetectDuplicatedBeanNames(boolean detectDuplicatedBeanNames)
Specifies if an exception should be thrown if two beans with same exception are registered with this container.
-
getResolveReferenceParameters
public boolean getResolveReferenceParameters()
Returnstrueif parameter references should be resolved.
-
setResolveReferenceParameters
public PetiteConfig setResolveReferenceParameters(boolean resolveReferenceParameters)
Defines if reference parameters should be resolved.
-
getUseFullTypeNames
public boolean getUseFullTypeNames()
-
setUseFullTypeNames
public PetiteConfig setUseFullTypeNames(boolean useFullTypeNames)
Specifies if type names should be full or short.
-
getLookupReferences
public PetiteReferenceType[] getLookupReferences()
-
setLookupReferences
public PetiteConfig setLookupReferences(PetiteReferenceType... lookupReferences)
Specifies references for bean name lookup, when name is not specified, in given order.
-
getUseParamo
public boolean getUseParamo()
-
setUseParamo
public void setUseParamo(boolean useParamo)
Specifies if Paramo tool should be used to resolve method and ctor argument names.
-
isWireScopedProxy
public boolean isWireScopedProxy()
-
setWireScopedProxy
public PetiteConfig setWireScopedProxy(boolean wireScopedProxy)
Defines if scoped proxies should be wired.
-
isDetectMixedScopes
public boolean isDetectMixedScopes()
-
setDetectMixedScopes
public PetiteConfig setDetectMixedScopes(boolean detectMixedScopes)
Defines if mixed scopes should be detected as errors. IfwireScopedProxyis not set, then enabling this flag will throw an exception on mixed scopes. IfwireScopedProxyis set enabling this flag will just issue a warn message in the log.
-
-