Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
37c2c89b
Commit
37c2c89b
authored
Feb 05, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restructure packages
Improve package structure and attempt to co-locate related classes.
parent
6ddbf3bd
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
99 additions
and
77 deletions
+99
-77
BeansEndpoint.java
.../springframework/boot/actuate/endpoint/BeansEndpoint.java
+2
-2
SecurityAutoConfigurationTests.java
...utoconfigure/security/SecurityAutoConfigurationTests.java
+1
-1
SpringApplicationBuilder.java
...pringframework/boot/builder/SpringApplicationBuilder.java
+2
-2
VcapApplicationListener.java
...gframework/boot/cloudfoundry/VcapApplicationListener.java
+3
-3
ConfigFileApplicationListener.java
...gframework/boot/config/ConfigFileApplicationListener.java
+1
-4
YamlPropertySourceLoader.java
...springframework/boot/config/YamlPropertySourceLoader.java
+5
-2
ContextIdApplicationContextInitializer.java
.../boot/context/ContextIdApplicationContextInitializer.java
+1
-1
FileEncodingApplicationListener.java
...amework/boot/context/FileEncodingApplicationListener.java
+1
-1
ParentContextApplicationContextInitializer.java
...t/context/ParentContextApplicationContextInitializer.java
+1
-1
ParentContextCloserApplicationListener.java
.../boot/context/ParentContextCloserApplicationListener.java
+3
-3
EnvironmentDelegateApplicationContextInitializer.java
...env/EnvironmentDelegateApplicationContextInitializer.java
+1
-1
EnvironmentDelegateApplicationListener.java
...t/context/env/EnvironmentDelegateApplicationListener.java
+1
-1
ServletContextApplicationContextInitializer.java
...text/web/ServletContextApplicationContextInitializer.java
+1
-1
JacksonJsonParser.java
...java/org/springframework/boot/json/JacksonJsonParser.java
+1
-1
JsonParser.java
...c/main/java/org/springframework/boot/json/JsonParser.java
+1
-1
JsonParserFactory.java
...java/org/springframework/boot/json/JsonParserFactory.java
+1
-1
SimpleJsonParser.java
.../java/org/springframework/boot/json/SimpleJsonParser.java
+1
-1
YamlJsonParser.java
...in/java/org/springframework/boot/json/YamlJsonParser.java
+1
-1
ClasspathLoggingApplicationListener.java
...ork/boot/logging/ClasspathLoggingApplicationListener.java
+1
-1
LoggingApplicationListener.java
...ingframework/boot/logging/LoggingApplicationListener.java
+1
-3
SpringApplicationContextLoader.java
...ngframework/boot/test/SpringApplicationContextLoader.java
+1
-1
SpringBootServletInitializer.java
...pringframework/boot/web/SpringBootServletInitializer.java
+2
-2
ArrayDocumentMatcher.java
...a/org/springframework/boot/yaml/ArrayDocumentMatcher.java
+3
-3
DefaultProfileDocumentMatcher.java
...ingframework/boot/yaml/DefaultProfileDocumentMatcher.java
+3
-3
SpringProfileDocumentMatcher.java
...ringframework/boot/yaml/SpringProfileDocumentMatcher.java
+3
-3
YamlMapFactoryBean.java
...ava/org/springframework/boot/yaml/YamlMapFactoryBean.java
+1
-1
YamlProcessor.java
...ain/java/org/springframework/boot/yaml/YamlProcessor.java
+1
-1
YamlPropertiesFactoryBean.java
.../springframework/boot/yaml/YamlPropertiesFactoryBean.java
+1
-1
spring.factories
spring-boot/src/main/resources/META-INF/spring.factories
+10
-10
VcapApplicationListenerTests.java
...ework/boot/cloudfoundry/VcapApplicationListenerTests.java
+2
-1
ConfigFileApplicationListenerTests.java
...ework/boot/config/ConfigFileApplicationListenerTests.java
+2
-1
ContextIdApplicationContextInitializerTests.java
.../context/ContextIdApplicationContextInitializerTests.java
+2
-1
FileEncodingApplicationListenerTests.java
...rk/boot/context/FileEncodingApplicationListenerTests.java
+2
-1
EnvironmentDelegateApplicationContextInitializerTests.java
...nvironmentDelegateApplicationContextInitializerTests.java
+2
-1
EnvironmentDelegateApplicationListenerTests.java
...text/env/EnvironmentDelegateApplicationListenerTests.java
+7
-1
JacksonParserTests.java
...ava/org/springframework/boot/json/JacksonParserTests.java
+4
-1
SimpleJsonParserTests.java
.../org/springframework/boot/json/SimpleJsonParserTests.java
+3
-1
YamlJsonParserTests.java
...va/org/springframework/boot/json/YamlJsonParserTests.java
+4
-1
LoggingApplicationListenerTests.java
...amework/boot/logging/LoggingApplicationListenerTests.java
+2
-1
ArrayDocumentMatcherTests.java
.../springframework/boot/yaml/ArrayDocumentMatcherTests.java
+3
-2
YamlMapFactoryBeanTests.java
...rg/springframework/boot/yaml/YamlMapFactoryBeanTests.java
+3
-2
YamlProcessorTests.java
...ava/org/springframework/boot/yaml/YamlProcessorTests.java
+3
-2
YamlPropertiesFactoryBeanTests.java
...ngframework/boot/yaml/YamlPropertiesFactoryBeanTests.java
+5
-4
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/BeansEndpoint.java
View file @
37c2c89b
...
...
@@ -19,9 +19,9 @@ package org.springframework.boot.actuate.endpoint;
import
java.util.List
;
import
org.springframework.beans.BeansException
;
import
org.springframework.boot.config.JsonParser
;
import
org.springframework.boot.config.JsonParserFactory
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.json.JsonParser
;
import
org.springframework.boot.json.JsonParserFactory
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.support.LiveBeansView
;
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityAutoConfigurationTests.java
View file @
37c2c89b
...
...
@@ -24,8 +24,8 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import
org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
;
import
org.springframework.boot.autoconfigure.orm.jpa.test.City
;
import
org.springframework.boot.context.listener.LoggingApplicationListener
;
import
org.springframework.boot.event.ApplicationPreparedEvent
;
import
org.springframework.boot.logging.LoggingApplicationListener
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
View file @
37c2c89b
...
...
@@ -30,8 +30,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
import
org.springframework.beans.factory.support.BeanNameGenerator
;
import
org.springframework.boot.ProfileDetector
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.
initializer.
ParentContextApplicationContextInitializer
;
import
org.springframework.boot.context.
initializer
.ServletContextApplicationContextInitializer
;
import
org.springframework.boot.context.ParentContextApplicationContextInitializer
;
import
org.springframework.boot.context.
web
.ServletContextApplicationContextInitializer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextInitializer
;
import
org.springframework.context.ApplicationListener
;
...
...
spring-boot/src/main/java/org/springframework/boot/c
ontext/listener
/VcapApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/c
loudfoundry
/VcapApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
c
ontext
.
listener
;
package
org
.
springframework
.
boot
.
c
loudfoundry
;
import
java.util.Collection
;
import
java.util.Collections
;
...
...
@@ -26,9 +26,9 @@ import java.util.Properties;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.config.JsonParser
;
import
org.springframework.boot.config.JsonParserFactory
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.boot.json.JsonParser
;
import
org.springframework.boot.json.JsonParserFactory
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.env.CommandLinePropertySource
;
...
...
spring-boot/src/main/java/org/springframework/boot/con
text/listener
/ConfigFileApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/con
fig
/ConfigFileApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
con
text
.
listener
;
package
org
.
springframework
.
boot
.
con
fig
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
...
...
@@ -33,9 +33,6 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.bind.PropertySourcesPropertyValues
;
import
org.springframework.boot.bind.RelaxedDataBinder
;
import
org.springframework.boot.config.DefaultPropertySourceLoadersFactory
;
import
org.springframework.boot.config.PropertySourceLoader
;
import
org.springframework.boot.config.PropertySourceLoadersFactory
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.annotation.AnnotatedBeanDefinitionReader
;
...
...
spring-boot/src/main/java/org/springframework/boot/config/YamlPropertySourceLoader.java
View file @
37c2c89b
...
...
@@ -22,8 +22,11 @@ import java.util.List;
import
java.util.Properties
;
import
java.util.Set
;
import
org.springframework.boot.config.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.config.YamlProcessor.MatchStatus
;
import
org.springframework.boot.yaml.DefaultProfileDocumentMatcher
;
import
org.springframework.boot.yaml.SpringProfileDocumentMatcher
;
import
org.springframework.boot.yaml.YamlPropertiesFactoryBean
;
import
org.springframework.boot.yaml.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.yaml.YamlProcessor.MatchStatus
;
import
org.springframework.core.env.PropertySource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.util.StringUtils
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
initializer/
ContextIdApplicationContextInitializer.java
→
spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextInitializer
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
listener/
FileEncodingApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/context/FileEncodingApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
context
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
initializer/
ParentContextApplicationContextInitializer.java
→
spring-boot/src/main/java/org/springframework/boot/context/ParentContextApplicationContextInitializer.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextInitializer
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
listener/
ParentContextCloserApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/context/ParentContextCloserApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,9 +14,9 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
context
;
import
org.springframework.boot.context.
initializer.
ParentContextApplicationContextInitializer.ParentContextAvailableEvent
;
import
org.springframework.boot.context.ParentContextApplicationContextInitializer.ParentContextAvailableEvent
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.event.ContextClosedEvent
;
...
...
@@ -71,4 +71,4 @@ public class ParentContextCloserApplicationListener implements
}
}
\ No newline at end of file
}
spring-boot/src/main/java/org/springframework/boot/context/
initializer
/EnvironmentDelegateApplicationContextInitializer.java
→
spring-boot/src/main/java/org/springframework/boot/context/
env
/EnvironmentDelegateApplicationContextInitializer.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
.
env
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
listener
/EnvironmentDelegateApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/context/
env
/EnvironmentDelegateApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
context
.
env
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
spring-boot/src/main/java/org/springframework/boot/context/
initializer
/ServletContextApplicationContextInitializer.java
→
spring-boot/src/main/java/org/springframework/boot/context/
web
/ServletContextApplicationContextInitializer.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
.
web
;
import
javax.servlet.ServletContext
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/JacksonJsonParser.java
→
spring-boot/src/main/java/org/springframework/boot/
json
/JacksonJsonParser.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
java.util.List
;
import
java.util.Map
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/JsonParser.java
→
spring-boot/src/main/java/org/springframework/boot/
json
/JsonParser.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
java.util.List
;
import
java.util.Map
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/JsonParserFactory.java
→
spring-boot/src/main/java/org/springframework/boot/
json
/JsonParserFactory.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
org.springframework.util.ClassUtils
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/SimpleJsonParser.java
→
spring-boot/src/main/java/org/springframework/boot/
json
/SimpleJsonParser.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/YamlJsonParser.java
→
spring-boot/src/main/java/org/springframework/boot/
json
/YamlJsonParser.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
java.util.List
;
import
java.util.Map
;
...
...
spring-boot/src/main/java/org/springframework/boot/
context/listener
/ClasspathLoggingApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/
logging
/ClasspathLoggingApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
logging
;
import
java.net.URLClassLoader
;
import
java.util.Arrays
;
...
...
spring-boot/src/main/java/org/springframework/boot/
context/listener
/LoggingApplicationListener.java
→
spring-boot/src/main/java/org/springframework/boot/
logging
/LoggingApplicationListener.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
logging
;
import
java.lang.management.ManagementFactory
;
import
java.util.Arrays
;
...
...
@@ -28,8 +28,6 @@ import org.apache.commons.logging.LogFactory;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.boot.event.ApplicationStartedEvent
;
import
org.springframework.boot.logging.LogLevel
;
import
org.springframework.boot.logging.LoggingSystem
;
import
org.springframework.context.ApplicationEvent
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.event.SmartApplicationListener
;
...
...
spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationContextLoader.java
View file @
37c2c89b
...
...
@@ -26,7 +26,7 @@ import java.util.Set;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.
initializer
.ServletContextApplicationContextInitializer
;
import
org.springframework.boot.context.
web
.ServletContextApplicationContextInitializer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextInitializer
;
import
org.springframework.mock.web.MockServletContext
;
...
...
spring-boot/src/main/java/org/springframework/boot/web/SpringBootServletInitializer.java
View file @
37c2c89b
...
...
@@ -23,9 +23,9 @@ import javax.servlet.ServletException;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.context.ParentContextApplicationContextInitializer
;
import
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext
;
import
org.springframework.boot.context.initializer.ParentContextApplicationContextInitializer
;
import
org.springframework.boot.context.initializer.ServletContextApplicationContextInitializer
;
import
org.springframework.boot.context.web.ServletContextApplicationContextInitializer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.web.WebApplicationInitializer
;
import
org.springframework.web.context.ContextLoaderListener
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/ArrayDocumentMatcher.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/ArrayDocumentMatcher.java
View file @
37c2c89b
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Properties
;
import
java.util.Set
;
import
org.springframework.boot.
config
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
config
.YamlProcessor.MatchStatus
;
import
org.springframework.boot.
yaml
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
yaml
.YamlProcessor.MatchStatus
;
import
org.springframework.util.StringUtils
;
/**
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/DefaultProfileDocumentMatcher.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/DefaultProfileDocumentMatcher.java
View file @
37c2c89b
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Properties
;
import
org.springframework.boot.
config
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
config
.YamlProcessor.MatchStatus
;
import
org.springframework.boot.
yaml
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
yaml
.YamlProcessor.MatchStatus
;
/**
* A {@link DocumentMatcher} that matches the default profile implicitly but not
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/SpringProfileDocumentMatcher.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/SpringProfileDocumentMatcher.java
View file @
37c2c89b
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Arrays
;
import
java.util.LinkedHashSet
;
import
java.util.Properties
;
import
org.springframework.boot.
config
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
config
.YamlProcessor.MatchStatus
;
import
org.springframework.boot.
yaml
.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.
yaml
.YamlProcessor.MatchStatus
;
import
org.springframework.core.env.Environment
;
/**
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/YamlMapFactoryBean.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/YamlMapFactoryBean.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/YamlProcessor.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/YamlProcessor.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.io.IOException
;
import
java.util.Collection
;
...
...
spring-boot/src/main/java/org/springframework/boot/
config
/YamlPropertiesFactoryBean.java
→
spring-boot/src/main/java/org/springframework/boot/
yaml
/YamlPropertiesFactoryBean.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Map
;
import
java.util.Properties
;
...
...
spring-boot/src/main/resources/META-INF/spring.factories
View file @
37c2c89b
...
...
@@ -4,17 +4,17 @@ org.springframework.boot.event.EventPublishingRunParticipant
# Application Context Initializers
org.springframework.context.ApplicationContextInitializer=\
org.springframework.boot.context.
initializer.
ContextIdApplicationContextInitializer,\
org.springframework.boot.context.
initializer
.EnvironmentDelegateApplicationContextInitializer
org.springframework.boot.context.ContextIdApplicationContextInitializer,\
org.springframework.boot.context.
env
.EnvironmentDelegateApplicationContextInitializer
# Application Listeners
org.springframework.context.ApplicationListener=\
org.springframework.boot.c
ontext.listener.ClasspathLogging
ApplicationListener,\
org.springframework.boot.con
text.listener
.ConfigFileApplicationListener,\
org.springframework.boot.context.
listener.EnvironmentDelegate
ApplicationListener,\
org.springframework.boot.context.
listener.FileEncoding
ApplicationListener,\
org.springframework.boot.context.
listener.Logging
ApplicationListener,\
org.springframework.boot.
context.listener.Vcap
ApplicationListener,\
org.springframework.boot.
context.listener.ParentContextCloser
ApplicationListener,\
org.springframework.boot.l
iquibase.LiquibaseServiceLocator
ApplicationListener
org.springframework.boot.c
loudfoundry.Vcap
ApplicationListener,\
org.springframework.boot.con
fig
.ConfigFileApplicationListener,\
org.springframework.boot.context.
FileEncoding
ApplicationListener,\
org.springframework.boot.context.
ParentContextCloser
ApplicationListener,\
org.springframework.boot.context.
env.EnvironmentDelegate
ApplicationListener,\
org.springframework.boot.
liquibase.LiquibaseServiceLocator
ApplicationListener,\
org.springframework.boot.
logging.ClasspathLogging
ApplicationListener,\
org.springframework.boot.l
ogging.Logging
ApplicationListener
spring-boot/src/test/java/org/springframework/boot/c
ontext/listener
/VcapApplicationListenerTests.java
→
spring-boot/src/test/java/org/springframework/boot/c
loudfoundry
/VcapApplicationListenerTests.java
View file @
37c2c89b
...
...
@@ -14,10 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
c
ontext
.
listener
;
package
org
.
springframework
.
boot
.
c
loudfoundry
;
import
org.junit.Test
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.cloudfoundry.VcapApplicationListener
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.context.ConfigurableApplicationContext
;
...
...
spring-boot/src/test/java/org/springframework/boot/con
text/listener
/ConfigFileApplicationListenerTests.java
→
spring-boot/src/test/java/org/springframework/boot/con
fig
/ConfigFileApplicationListenerTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
con
text
.
listener
;
package
org
.
springframework
.
boot
.
con
fig
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -24,6 +24,7 @@ import org.junit.Rule;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.config.ConfigFileApplicationListener
;
import
org.springframework.boot.config.PropertySourceLoader
;
import
org.springframework.boot.config.PropertySourceLoadersFactory
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
...
...
spring-boot/src/test/java/org/springframework/boot/context/
initializer/
ContextIdApplicationContextInitializerTests.java
→
spring-boot/src/test/java/org/springframework/boot/context/ContextIdApplicationContextInitializerTests.java
View file @
37c2c89b
...
...
@@ -14,9 +14,10 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
;
import
org.junit.Test
;
import
org.springframework.boot.context.ContextIdApplicationContextInitializer
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
...
...
spring-boot/src/test/java/org/springframework/boot/context/
listener/
FileEncodingApplicationListenerTests.java
→
spring-boot/src/test/java/org/springframework/boot/context/FileEncodingApplicationListenerTests.java
View file @
37c2c89b
...
...
@@ -14,11 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
context
;
import
org.junit.Assume
;
import
org.junit.Test
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.FileEncodingApplicationListener
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.core.env.ConfigurableEnvironment
;
...
...
spring-boot/src/test/java/org/springframework/boot/context/
initializer
/EnvironmentDelegateApplicationContextInitializerTests.java
→
spring-boot/src/test/java/org/springframework/boot/context/
env
/EnvironmentDelegateApplicationContextInitializerTests.java
View file @
37c2c89b
...
...
@@ -14,11 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
initializer
;
package
org
.
springframework
.
boot
.
context
.
env
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.springframework.boot.context.env.EnvironmentDelegateApplicationContextInitializer
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.context.ApplicationContextException
;
import
org.springframework.context.ApplicationContextInitializer
;
...
...
spring-boot/src/test/java/org/springframework/boot/context/
listener
/EnvironmentDelegateApplicationListenerTests.java
→
spring-boot/src/test/java/org/springframework/boot/context/
env
/EnvironmentDelegateApplicationListenerTests.java
View file @
37c2c89b
...
...
@@ -14,13 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
context
.
env
;
import
org.junit.After
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.env.EnvironmentDelegateApplicationListener
;
import
org.springframework.boot.event.ApplicationEnvironmentPreparedEvent
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.context.ApplicationListener
;
...
...
@@ -33,6 +34,11 @@ import org.springframework.core.annotation.Order;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
junit
.
Assert
.
assertThat
;
/**
* Tests for {@link EnvironmentDelegateApplicationListener}.
*
* @author Dave Syer
*/
public
class
EnvironmentDelegateApplicationListenerTests
{
@Rule
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/JacksonParserTests.java
→
spring-boot/src/test/java/org/springframework/boot/
json
/JacksonParserTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,10 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
org.springframework.boot.json.JacksonJsonParser
;
import
org.springframework.boot.json.JsonParser
;
/**
* Tests for {@link JsonParser}.
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/SimpleJsonParserTests.java
→
spring-boot/src/test/java/org/springframework/boot/
json
/SimpleJsonParserTests.java
View file @
37c2c89b
...
...
@@ -14,12 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
java.util.List
;
import
java.util.Map
;
import
org.junit.Test
;
import
org.springframework.boot.json.JsonParser
;
import
org.springframework.boot.json.SimpleJsonParser
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/YamlJsonParserTests.java
→
spring-boot/src/test/java/org/springframework/boot/
json
/YamlJsonParserTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,10 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
json
;
import
org.springframework.boot.json.JsonParser
;
import
org.springframework.boot.json.YamlJsonParser
;
/**
* Tests for {@link YamlJsonParser}.
...
...
spring-boot/src/test/java/org/springframework/boot/
context/listener
/LoggingApplicationListenerTests.java
→
spring-boot/src/test/java/org/springframework/boot/
logging
/LoggingApplicationListenerTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
context
.
listener
;
package
org
.
springframework
.
boot
.
logging
;
import
java.io.File
;
import
java.io.IOException
;
...
...
@@ -31,6 +31,7 @@ import org.junit.rules.TemporaryFolder;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.event.ApplicationStartedEvent
;
import
org.springframework.boot.logging.LogLevel
;
import
org.springframework.boot.logging.LoggingApplicationListener
;
import
org.springframework.boot.logging.java.JavaLoggingSystem
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.boot.test.OutputCapture
;
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/ArrayDocumentMatcherTests.java
→
spring-boot/src/test/java/org/springframework/boot/
yaml
/ArrayDocumentMatcherTests.java
View file @
37c2c89b
...
...
@@ -14,13 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.io.IOException
;
import
java.util.Properties
;
import
org.junit.Test
;
import
org.springframework.boot.config.YamlProcessor.MatchStatus
;
import
org.springframework.boot.yaml.ArrayDocumentMatcher
;
import
org.springframework.boot.yaml.YamlProcessor.MatchStatus
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.support.PropertiesLoaderUtils
;
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/YamlMapFactoryBeanTests.java
→
spring-boot/src/test/java/org/springframework/boot/
yaml
/YamlMapFactoryBeanTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.io.IOException
;
import
java.io.InputStream
;
...
...
@@ -22,7 +22,8 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
import
org.junit.Test
;
import
org.springframework.boot.config.YamlProcessor.ResolutionMethod
;
import
org.springframework.boot.yaml.YamlMapFactoryBean
;
import
org.springframework.boot.yaml.YamlProcessor.ResolutionMethod
;
import
org.springframework.core.io.AbstractResource
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.FileSystemResource
;
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/YamlProcessorTests.java
→
spring-boot/src/test/java/org/springframework/boot/
yaml
/YamlProcessorTests.java
View file @
37c2c89b
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Map
;
import
java.util.Properties
;
...
...
@@ -21,7 +21,8 @@ import java.util.Properties;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.springframework.boot.config.YamlProcessor.MatchCallback
;
import
org.springframework.boot.yaml.YamlProcessor
;
import
org.springframework.boot.yaml.YamlProcessor.MatchCallback
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.Resource
;
import
org.yaml.snakeyaml.parser.ParserException
;
...
...
spring-boot/src/test/java/org/springframework/boot/
config
/YamlPropertiesFactoryBeanTests.java
→
spring-boot/src/test/java/org/springframework/boot/
yaml
/YamlPropertiesFactoryBeanTests.java
View file @
37c2c89b
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
yaml
;
import
java.util.Arrays
;
import
java.util.Map
;
...
...
@@ -24,9 +24,10 @@ import org.junit.Ignore;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.springframework.boot.config.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.config.YamlProcessor.MatchStatus
;
import
org.springframework.boot.config.YamlProcessor.ResolutionMethod
;
import
org.springframework.boot.yaml.YamlPropertiesFactoryBean
;
import
org.springframework.boot.yaml.YamlProcessor.DocumentMatcher
;
import
org.springframework.boot.yaml.YamlProcessor.MatchStatus
;
import
org.springframework.boot.yaml.YamlProcessor.ResolutionMethod
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.Resource
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment