public class PetiteConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected WiringMode |
defaultWiringMode |
protected boolean |
detectDuplicatedBeanNames |
protected boolean |
detectMixedScopes |
protected boolean |
implicitParamInjection |
protected PetiteReferenceType[] |
lookupReferences |
protected boolean |
resolveReferenceParameters |
protected boolean |
useAltBeanNames |
protected boolean |
useFullTypeNames |
protected boolean |
useParamo |
protected boolean |
wireScopedProxy |
Constructor and Description |
---|
PetiteConfig() |
Modifier and Type | Method and Description |
---|---|
WiringMode |
getDefaultWiringMode()
Returns default wiring mode.
|
boolean |
getDetectDuplicatedBeanNames()
Returns
true if container detects duplicated bean names. |
PetiteReferenceType[] |
getLookupReferences() |
boolean |
getResolveReferenceParameters()
Returns
true if parameter references should be resolved. |
boolean |
getUseFullTypeNames() |
boolean |
getUseParamo() |
boolean |
isDetectMixedScopes() |
boolean |
isImplicitParamInjection()
Returns
true if implicit parameter injection is enabled. |
boolean |
isUseAltBeanNames()
Returns if alternative bean names are in use.
|
boolean |
isWireScopedProxy() |
protected WiringMode |
resolveWiringMode(WiringMode wiringMode)
Resolves wiring mode by checking if default and
null values. |
PetiteConfig |
setDefaultWiringMode(WiringMode defaultWiringMode)
Specifies default wiring mode.
|
PetiteConfig |
setDetectDuplicatedBeanNames(boolean detectDuplicatedBeanNames)
Specifies if an exception should be thrown if two beans with same exception are registered with this container.
|
PetiteConfig |
setDetectMixedScopes(boolean detectMixedScopes)
Defines if mixed scopes should be detected as errors.
|
void |
setImplicitParamInjection(boolean implicitParamInjection)
Enables implicit parameter injection.
|
PetiteConfig |
setLookupReferences(PetiteReferenceType... lookupReferences)
Specifies references for bean name lookup, when name
is not specified, in given order.
|
PetiteConfig |
setResolveReferenceParameters(boolean resolveReferenceParameters)
Defines if reference parameters should be resolved.
|
PetiteConfig |
setUseAltBeanNames(boolean useAltBeanNames)
Enables alternative bean names.
|
PetiteConfig |
setUseFullTypeNames(boolean useFullTypeNames)
Specifies if type names should be full or short.
|
void |
setUseParamo(boolean useParamo)
Specifies if Paramo tool should be used to resolve
method and ctor argument names.
|
PetiteConfig |
setWireScopedProxy(boolean wireScopedProxy)
Defines if scoped proxies should be wired.
|
protected boolean implicitParamInjection
protected boolean useAltBeanNames
protected WiringMode defaultWiringMode
protected boolean detectDuplicatedBeanNames
protected boolean resolveReferenceParameters
protected boolean useFullTypeNames
protected PetiteReferenceType[] lookupReferences
protected boolean useParamo
protected boolean wireScopedProxy
protected boolean detectMixedScopes
public boolean isImplicitParamInjection()
true
if implicit parameter injection is enabled.public void setImplicitParamInjection(boolean implicitParamInjection)
public boolean isUseAltBeanNames()
public PetiteConfig setUseAltBeanNames(boolean useAltBeanNames)
public WiringMode getDefaultWiringMode()
public PetiteConfig setDefaultWiringMode(WiringMode defaultWiringMode)
protected WiringMode resolveWiringMode(WiringMode wiringMode)
null
values.public boolean getDetectDuplicatedBeanNames()
true
if container detects duplicated bean names.public PetiteConfig setDetectDuplicatedBeanNames(boolean detectDuplicatedBeanNames)
public boolean getResolveReferenceParameters()
true
if parameter references should be resolved.public PetiteConfig setResolveReferenceParameters(boolean resolveReferenceParameters)
public boolean getUseFullTypeNames()
public PetiteConfig setUseFullTypeNames(boolean useFullTypeNames)
public PetiteReferenceType[] getLookupReferences()
public PetiteConfig setLookupReferences(PetiteReferenceType... lookupReferences)
public boolean getUseParamo()
public void setUseParamo(boolean useParamo)
public boolean isWireScopedProxy()
public PetiteConfig setWireScopedProxy(boolean wireScopedProxy)
public boolean isDetectMixedScopes()
public PetiteConfig setDetectMixedScopes(boolean detectMixedScopes)
wireScopedProxy
is not set, then enabling this flag
will throw an exception on mixed scopes. If wireScopedProxy
is set
enabling this flag will just issue a warn message in the log.Copyright © 2003-present Jodd Team