类 PropertySourceExtensionLoader<A extends java.lang.annotation.Annotation,​EA extends PropertySourceExtensionAttributes<A>>

    • 构造器详细资料

      • PropertySourceExtensionLoader

        public PropertySourceExtensionLoader()
    • 方法详细资料

      • resolveExtensionAttributesType

        protected java.lang.Class<EA> resolveExtensionAttributesType()
      • isResourcePattern

        public boolean isResourcePattern​(java.lang.String resourceValue)
        Test the resource value is pattern or not
        参数:
        resourceValue - the String value presenting resource
        返回:
        true if resourceValue is a pattern value
      • loadPropertySource

        protected final void loadPropertySource​(org.springframework.core.annotation.AnnotationAttributes attributes,
                                                org.springframework.core.type.AnnotationMetadata metadata,
                                                java.lang.String propertySourceName,
                                                org.springframework.core.env.MutablePropertySources propertySources)
                                         throws java.lang.Throwable
        从类复制的说明: AnnotatedPropertySourceLoader
        Load the PropertySource
        指定者:
        loadPropertySource 在类中 AnnotatedPropertySourceLoader<A extends java.lang.annotation.Annotation>
        参数:
        attributes - AnnotationAttributes
        metadata - AnnotationMetadata
        propertySourceName - the name of PropertySource
        propertySources - MutablePropertySources to be added
        抛出:
        java.lang.Throwable - the failure of the loading
      • addPropertySource

        protected void addPropertySource​(EA extensionAttributes,
                                         org.springframework.core.env.MutablePropertySources propertySources,
                                         org.springframework.core.env.PropertySource<?> propertySource)
        Add the PropertySource into PropertySources via PropertySourceExtensionLoader
        参数:
        extensionAttributes - the annotation attributes of PropertySourceExtension
        propertySources - the MutablePropertySources to be added
        propertySource - the PropertySource is about to add
      • buildExtensionAttributes

        protected EA buildExtensionAttributes​(java.lang.Class<A> annotationType,
                                              java.lang.Class<EA> extensionAttributesType,
                                              org.springframework.core.annotation.AnnotationAttributes attributes,
                                              org.springframework.core.env.ConfigurableEnvironment environment)
                                       throws java.lang.Throwable
        Builds an instance of PropertySourceExtensionLoader
        参数:
        annotationType - the type of PropertySourceExtensionLoader
        extensionAttributesType - the type of PropertySourceExtensionLoader
        attributes - AnnotationAttributes
        environment - ConfigurableEnvironment
        返回:
        non-null
        抛出:
        java.lang.Throwable
      • loadPropertySource

        protected final org.springframework.core.env.PropertySource<?> loadPropertySource​(EA extensionAttributes,
                                                                                          java.lang.String propertySourceName)
                                                                                   throws java.lang.Throwable
        抛出:
        java.lang.Throwable
      • resolvePropertySourceResources

        protected java.util.List<PropertySourceExtensionLoader.PropertySourceResource> resolvePropertySourceResources​(EA extensionAttributes,
                                                                                                                      java.lang.String propertySourceName,
                                                                                                                      java.lang.String resourceValue,
                                                                                                                      java.util.Comparator<org.springframework.core.io.Resource> resourceComparator)
                                                                                                               throws java.lang.Throwable
        抛出:
        java.lang.Throwable
      • createResourcePropertySourceName

        protected java.lang.String createResourcePropertySourceName​(java.lang.String propertySourceName,
                                                                    java.lang.String resourceValue,
                                                                    org.springframework.core.io.Resource resource)
      • createResourcePropertySource

        protected final io.microsphere.spring.config.context.annotation.PropertySourceExtensionLoader.ResourcePropertySource createResourcePropertySource​(EA extensionAttributes,
                                                                                                                                                          java.lang.String propertySourceName,
                                                                                                                                                          org.springframework.core.io.support.PropertySourceFactory factory,
                                                                                                                                                          PropertySourceExtensionLoader.PropertySourceResource propertySourceResource)
                                                                                                                                                   throws java.lang.Throwable
        Create an instance of PropertySourceExtensionLoader.ResourcePropertySource for the specified resource
        参数:
        extensionAttributes - the annotation attributes of PropertySourceExtension
        propertySourceName - the name of {PropertySource} declared by PropertySourceExtension.name()
        factory - the factory to the PropertySource declared by PropertySourceExtension.factory()
        propertySourceResource - the source of PropertySource
        返回:
        an instance of PropertySourceExtensionLoader.ResourcePropertySource
        抛出:
        java.lang.Throwable
      • createInstance

        protected <T> T createInstance​(EA extensionAttributes,
                                       java.util.function.Function<EA,​java.lang.Class<T>> classFunction)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext context)
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware