Class RewriteBeanDefinition

  • All Implemented Interfaces:
    org.springframework.beans.BeanMetadataElement, org.springframework.beans.factory.config.BeanDefinition, org.springframework.core.AttributeAccessor

    public class RewriteBeanDefinition
    extends java.lang.Object
    implements org.springframework.beans.factory.config.BeanDefinition
    • Field Detail

      • TYPE_PROPERTY_KEY

        public static final java.lang.String TYPE_PROPERTY_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • RewriteBeanDefinition

        public RewriteBeanDefinition​(org.springframework.beans.factory.config.BeanDefinition delegate)
    • Method Detail

      • getType

        public org.openrewrite.java.tree.JavaType.Class getType()
      • getBeanDefinitionBody

        public java.lang.String getBeanDefinitionBody()
      • getProperty

        public final <T> java.util.Optional<T> getProperty​(java.lang.String property)
      • getStringProperty

        public final java.util.Optional<java.lang.String> getStringProperty​(java.lang.String property)
      • getBooleanProperty

        public final java.util.Optional<java.lang.Boolean> getBooleanProperty​(java.lang.String property)
      • getIntegerProperty

        public final java.util.Optional<java.lang.Integer> getIntegerProperty​(java.lang.String property)
      • isPropertyEqualTo

        public final boolean isPropertyEqualTo​(java.lang.String property,
                                               @Nullable
                                               java.lang.Object value)
      • setParentName

        public void setParentName​(java.lang.String parentName)
        Specified by:
        setParentName in interface org.springframework.beans.factory.config.BeanDefinition
      • getParentName

        @Nullable
        public java.lang.String getParentName()
        Specified by:
        getParentName in interface org.springframework.beans.factory.config.BeanDefinition
      • setBeanClassName

        public void setBeanClassName​(java.lang.String beanClassName)
        Specified by:
        setBeanClassName in interface org.springframework.beans.factory.config.BeanDefinition
      • getBeanClassName

        @NonNull
        public java.lang.String getBeanClassName()
        Specified by:
        getBeanClassName in interface org.springframework.beans.factory.config.BeanDefinition
      • setScope

        public void setScope​(java.lang.String scope)
        Specified by:
        setScope in interface org.springframework.beans.factory.config.BeanDefinition
      • getScope

        @Nullable
        public java.lang.String getScope()
        Specified by:
        getScope in interface org.springframework.beans.factory.config.BeanDefinition
      • setLazyInit

        public void setLazyInit​(boolean lazyInit)
        Specified by:
        setLazyInit in interface org.springframework.beans.factory.config.BeanDefinition
      • isLazyInit

        public boolean isLazyInit()
        Specified by:
        isLazyInit in interface org.springframework.beans.factory.config.BeanDefinition
      • setDependsOn

        public void setDependsOn​(java.lang.String... dependsOn)
        Specified by:
        setDependsOn in interface org.springframework.beans.factory.config.BeanDefinition
      • getDependsOn

        @Nullable
        public java.lang.String[] getDependsOn()
        Specified by:
        getDependsOn in interface org.springframework.beans.factory.config.BeanDefinition
      • setAutowireCandidate

        public void setAutowireCandidate​(boolean autowireCandidate)
        Specified by:
        setAutowireCandidate in interface org.springframework.beans.factory.config.BeanDefinition
      • isAutowireCandidate

        public boolean isAutowireCandidate()
        Specified by:
        isAutowireCandidate in interface org.springframework.beans.factory.config.BeanDefinition
      • setPrimary

        public void setPrimary​(boolean primary)
        Specified by:
        setPrimary in interface org.springframework.beans.factory.config.BeanDefinition
      • isPrimary

        public boolean isPrimary()
        Specified by:
        isPrimary in interface org.springframework.beans.factory.config.BeanDefinition
      • setFactoryBeanName

        public void setFactoryBeanName​(java.lang.String factoryBeanName)
        Specified by:
        setFactoryBeanName in interface org.springframework.beans.factory.config.BeanDefinition
      • getFactoryBeanName

        @Nullable
        public java.lang.String getFactoryBeanName()
        Specified by:
        getFactoryBeanName in interface org.springframework.beans.factory.config.BeanDefinition
      • setFactoryMethodName

        public void setFactoryMethodName​(java.lang.String factoryMethodName)
        Specified by:
        setFactoryMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • getFactoryMethodName

        @Nullable
        public java.lang.String getFactoryMethodName()
        Specified by:
        getFactoryMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • getConstructorArgumentValues

        public org.springframework.beans.factory.config.ConstructorArgumentValues getConstructorArgumentValues()
        Specified by:
        getConstructorArgumentValues in interface org.springframework.beans.factory.config.BeanDefinition
      • hasConstructorArgumentValues

        public boolean hasConstructorArgumentValues()
        Specified by:
        hasConstructorArgumentValues in interface org.springframework.beans.factory.config.BeanDefinition
      • getPropertyValues

        public org.springframework.beans.MutablePropertyValues getPropertyValues()
        Specified by:
        getPropertyValues in interface org.springframework.beans.factory.config.BeanDefinition
      • hasPropertyValues

        public boolean hasPropertyValues()
        Specified by:
        hasPropertyValues in interface org.springframework.beans.factory.config.BeanDefinition
      • setInitMethodName

        public void setInitMethodName​(java.lang.String initMethodName)
        Specified by:
        setInitMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • getInitMethodName

        @Nullable
        public java.lang.String getInitMethodName()
        Specified by:
        getInitMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • setDestroyMethodName

        public void setDestroyMethodName​(java.lang.String destroyMethodName)
        Specified by:
        setDestroyMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • getDestroyMethodName

        @Nullable
        public java.lang.String getDestroyMethodName()
        Specified by:
        getDestroyMethodName in interface org.springframework.beans.factory.config.BeanDefinition
      • setRole

        public void setRole​(int role)
        Specified by:
        setRole in interface org.springframework.beans.factory.config.BeanDefinition
      • getRole

        public int getRole()
        Specified by:
        getRole in interface org.springframework.beans.factory.config.BeanDefinition
      • setDescription

        public void setDescription​(java.lang.String description)
        Specified by:
        setDescription in interface org.springframework.beans.factory.config.BeanDefinition
      • getDescription

        @Nullable
        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.springframework.beans.factory.config.BeanDefinition
      • getResolvableType

        public org.springframework.core.ResolvableType getResolvableType()
        Specified by:
        getResolvableType in interface org.springframework.beans.factory.config.BeanDefinition
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.config.BeanDefinition
      • isPrototype

        public boolean isPrototype()
        Specified by:
        isPrototype in interface org.springframework.beans.factory.config.BeanDefinition
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface org.springframework.beans.factory.config.BeanDefinition
      • getResourceDescription

        @Nullable
        public java.lang.String getResourceDescription()
        Specified by:
        getResourceDescription in interface org.springframework.beans.factory.config.BeanDefinition
      • getOriginatingBeanDefinition

        @Nullable
        public org.springframework.beans.factory.config.BeanDefinition getOriginatingBeanDefinition()
        Specified by:
        getOriginatingBeanDefinition in interface org.springframework.beans.factory.config.BeanDefinition
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        setAttribute in interface org.springframework.core.AttributeAccessor
      • getAttribute

        @Nullable
        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface org.springframework.core.AttributeAccessor
      • removeAttribute

        @Nullable
        public java.lang.Object removeAttribute​(java.lang.String name)
        Specified by:
        removeAttribute in interface org.springframework.core.AttributeAccessor
      • hasAttribute

        public boolean hasAttribute​(java.lang.String name)
        Specified by:
        hasAttribute in interface org.springframework.core.AttributeAccessor
      • attributeNames

        public java.lang.String[] attributeNames()
        Specified by:
        attributeNames in interface org.springframework.core.AttributeAccessor
      • getSource

        @Nullable
        public java.lang.Object getSource()
        Specified by:
        getSource in interface org.springframework.beans.BeanMetadataElement