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
a5580995
Commit
a5580995
authored
Jan 23, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type mentioned in javadocs
parent
195eb9f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
ConfigFileApplicationListener.java
.../boot/context/listener/ConfigFileApplicationListener.java
+3
-5
LoggingApplicationListener.java
...ork/boot/context/listener/LoggingApplicationListener.java
+6
-6
VcapApplicationListener.java
...mework/boot/context/listener/VcapApplicationListener.java
+2
-3
No files found.
spring-boot/src/main/java/org/springframework/boot/context/listener/ConfigFileApplicationListener.java
View file @
a5580995
...
...
@@ -36,7 +36,6 @@ import org.springframework.boot.bind.RelaxedDataBinder;
import
org.springframework.boot.config.PropertiesPropertySourceLoader
;
import
org.springframework.boot.config.PropertySourceLoader
;
import
org.springframework.boot.config.YamlPropertySourceLoader
;
import
org.springframework.context.ApplicationContextInitializer
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.annotation.AnnotatedBeanDefinitionReader
;
import
org.springframework.context.annotation.PropertySources
;
...
...
@@ -58,10 +57,9 @@ import org.springframework.util.DigestUtils;
import
org.springframework.util.StringUtils
;
/**
* {@link ApplicationContextInitializer} that configures the context environment by
* loading properties from well known file locations. By default properties will be loaded
* from 'application.properties' and/or 'application.yml' files in the following
* locations:
* {@link ApplicationListener} that configures the context environment by loading
* properties from well known file locations. By default properties will be loaded from
* 'application.properties' and/or 'application.yml' files in the following locations:
* <ul>
* <li>classpath:</li>
* <li>file:./</li>
...
...
spring-boot/src/main/java/org/springframework/boot/context/listener/LoggingApplicationListener.java
View file @
a5580995
...
...
@@ -30,8 +30,8 @@ import org.springframework.boot.SpringApplicationEnvironmentAvailableEvent;
import
org.springframework.boot.SpringApplicationStartEvent
;
import
org.springframework.boot.logging.LogLevel
;
import
org.springframework.boot.logging.LoggingSystem
;
import
org.springframework.context.ApplicationContextInitializer
;
import
org.springframework.context.ApplicationEvent
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.event.SmartApplicationListener
;
import
org.springframework.core.env.ConfigurableEnvironment
;
import
org.springframework.core.env.Environment
;
...
...
@@ -41,11 +41,11 @@ import org.springframework.util.MultiValueMap;
import
org.springframework.util.ResourceUtils
;
/**
* An {@link Application
ContextInitializer} that configures a logging framework depending
*
on what it finds on the classpath and in the {@link Environment}. If the environment
*
contains a property <code>logging.config</code> then that will be used to initialize
*
the logging system, otherwise a default location is used. The classpath is probed for
* log
4j and log
back and if those are present they will be reconfigured, otherwise vanilla
* An {@link Application
Listener} that configures a logging framework depending on what it
*
finds on the classpath and in the {@link Environment}. If the environment contains a
*
property <code>logging.config</code> then that will be used to initialize the logging
*
system, otherwise a default location is used. The classpath is probed for log4j and
* logback and if those are present they will be reconfigured, otherwise vanilla
* <code>java.util.logging</code> will be used. </p>
*
* <p>
...
...
spring-boot/src/main/java/org/springframework/boot/context/listener/VcapApplicationListener.java
View file @
a5580995
...
...
@@ -29,7 +29,6 @@ import org.apache.commons.logging.LogFactory;
import
org.springframework.boot.SpringApplicationEnvironmentAvailableEvent
;
import
org.springframework.boot.config.JsonParser
;
import
org.springframework.boot.config.JsonParserFactory
;
import
org.springframework.context.ApplicationContextInitializer
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.env.CommandLinePropertySource
;
...
...
@@ -40,8 +39,8 @@ import org.springframework.core.env.PropertiesPropertySource;
import
org.springframework.util.StringUtils
;
/**
* An {@link Application
ContextInitializer} that knows where to find VCAP (a.k.a. Cloud
*
Foundry)
meta data in the existing environment. It parses out the VCAP_APPLICATION and
* An {@link Application
Listener} that knows where to find VCAP (a.k.a. Cloud Foundry)
* meta data in the existing environment. It parses out the VCAP_APPLICATION and
* VCAP_SERVICES meta data and dumps it in a form that is easily consumed by
* {@link Environment} users. If the app is running in Cloud Foundry then both meta data
* items are JSON objects encoded in OS environment variables. VCAP_APPLICATION is a
...
...
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