Package jodd.petite

Class PetiteConfig


  • public class PetiteConfig
    extends java.lang.Object
    Petite configuration.
    • 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
      • useParamo

        protected boolean useParamo
      • wireScopedProxy

        protected boolean wireScopedProxy
      • detectMixedScopes

        protected boolean detectMixedScopes
    • Constructor Detail

      • PetiteConfig

        public PetiteConfig()
    • Method Detail

      • isImplicitParamInjection

        public boolean isImplicitParamInjection()
        Returns true if 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 and null values.
      • getDetectDuplicatedBeanNames

        public boolean getDetectDuplicatedBeanNames()
        Returns true if 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()
        Returns true if 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.
      • 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. If 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.