Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
c8d024c2
Commit
c8d024c2
authored
Aug 18, 2017
by
Ryan Baxter
Committed by
GitHub
Aug 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2213 from ryanjbaxter/deprecation-warnings-for-starters
Adds deprecation warning to starters
parents
24cbbb9a
b519ad8d
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
339 additions
and
0 deletions
+339
-0
ArchaiusStarterDeprecationWarningAutoConfiguration.java
...s/ArchaiusStarterDeprecationWarningAutoConfiguration.java
+23
-0
spring.factories
...ter-archaius/src/main/resources/META-INF/spring.factories
+4
-0
AtlasStarterDeprecationWarningAutoConfiguration.java
...tlas/AtlasStarterDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...tarter-atlas/src/main/resources/META-INF/spring.factories
+4
-0
EurekaServerStarterDeprecationWarningAutoConfiguration.java
...rekaServerStarterDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...ureka-server/src/main/resources/META-INF/spring.factories
+4
-0
EurekaStarterDeprecationWarningAutoConfiguration.java
...eka/EurekaStarterDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...arter-eureka/src/main/resources/META-INF/spring.factories
+4
-0
FeignStarterDeprecationWarningAutoConfiguration.java
...eign/FeignStarterDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...oud-starter-feign/src/resources/META-INF/spring.factories
+4
-0
HystrixDashboardDeprecationWarningAutoConfiguration.java
.../HystrixDashboardDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...hystrix-dashboard/src/resources/META-INF/spring.factories
+4
-0
HystrixStarterDeprecationWarningAutoConfiguration.java
...ix/HystrixStarterDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...d-starter-hystrix/src/resources/META-INF/spring.factories
+4
-0
RibbonDeprecationWarningAutoConfiguration.java
...ter/ribbon/RibbonDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...ud-starter-ribbon/src/resources/META-INF/spring.factories
+4
-0
SpectatorDeprecationWarningAutoConfiguration.java
...ectator/SpectatorDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...starter-spectator/src/resources/META-INF/spring.factories
+4
-0
TurbineAmqpDeprecationWarningAutoConfiguration.java
.../amqp/TurbineAmqpDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...turbine-amqp/src/main/resources/META-INF/spring.factories
+4
-0
TurbineStreamDeprecationWarningAutoConfiguration.java
...eam/TurbineStreamDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...er-turbine-stream/src/resources/META-INF/spring.factories
+4
-0
TurbineDeprecationWarningAutoConfiguration.java
...r/turbine/TurbineDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...d-starter-turbine/src/resources/META-INF/spring.factories
+4
-0
ZuulDeprecationWarningAutoConfiguration.java
...starter/zuul/ZuulDeprecationWarningAutoConfiguration.java
+22
-0
spring.factories
...loud-starter-zuul/src/resources/META-INF/spring.factories
+4
-0
No files found.
spring-cloud-starter-archaius/src/main/java/org/springframework/cloud/starter/archaius/ArchaiusStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
archaius
;
/**
* Auto configuration to print deprecation warning about starter.
* @author Ryan Baxter
*/
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
@Deprecated
public
class
ArchaiusStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
ArchaiusStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-archaius is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-archaius"
);
}
}
spring-cloud-starter-archaius/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.archaius.ArchaiusStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-atlas/src/main/java/org/springframework/cloud/starter/atlas/AtlasStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
atlas
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print warning about atlas starter deprecation.
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
AtlasStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
AtlasStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-atlas is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-atlas"
);
}
}
spring-cloud-starter-atlas/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.atlas.AtlasStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-eureka-server/src/main/java/org/springframework/cloud/starter/eureka/server/EurekaServerStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
eureka
.
server
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning for spring-cloud-starter-eureka-server
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
EurekaServerStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
EurekaServerStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-eureka-server is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-eureka-server"
);
}
}
spring-cloud-starter-eureka-server/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.eureka.server.EurekaServerStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-eureka/src/main/java/org/springframework/cloud/starter/eureka/EurekaStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
eureka
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print warning message about Eureka starter deprecation
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
EurekaStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
EurekaStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-eureka is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-eureka"
);
}
}
spring-cloud-starter-eureka/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.eureka.EurekaStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-feign/src/main/java/org/springframework/cloud/starter/feign/FeignStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
feign
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to log warning about deprecation of starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
FeignStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
FeignStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-feign is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-openfeign"
);
}
}
spring-cloud-starter-feign/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
oorg.springframework.cloud.starter.feign.FeignStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-hystrix-dashboard/src/main/java/org/springframework/cloud/starter/hystrix/dashboard/HystrixDashboardDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
hystrix
.
dashboard
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to log a warning about starter being deprecated
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
HystrixDashboardDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
HystrixDashboardDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-hystrix-dashboard is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-hystrix-dashboard"
);
}
}
spring-cloud-starter-hystrix-dashboard/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.hystrix.dashboard.HystrixDashboardDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-hystrix/src/main/java/org/springframework/cloud/starter/hystrix/HystrixStarterDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
hystrix
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration class to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
HystrixStarterDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
HystrixStarterDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-hystrix is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-hystrix"
);
}
}
spring-cloud-starter-hystrix/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.hystrix.HystrixStarterDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-ribbon/src/main/java/org/springframework/cloud/starter/ribbon/RibbonDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
ribbon
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
RibbonDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
RibbonDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-ribbon is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-ribbon"
);
}
}
spring-cloud-starter-ribbon/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.ribbon.RibbonDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-spectator/src/main/java/org/springframework/cloud/starter/spectator/SpectatorDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
spectator
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
SpectatorDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
SpectatorDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-spectator is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-spectator"
);
}
}
spring-cloud-starter-spectator/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.spectator.SpectatorDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-turbine-amqp/src/main/java/org/springframework/cloud/starter/turbine/amqp/TurbineAmqpDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
turbine
.
amqp
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration class to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
TurbineAmqpDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
TurbineAmqpDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-turbine-amqp is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-turbine-amqp"
);
}
}
spring-cloud-starter-turbine-amqp/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.amqp.TurbineAmqpDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-turbine-stream/src/main/java/org/springframework/cloud/starter/turbine/stream/TurbineStreamDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
turbine
.
stream
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
TurbineStreamDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
TurbineStreamDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-turbine-stream is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-turbine-stream"
);
}
}
spring-cloud-starter-turbine-stream/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.stream.TurbineStreamDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-turbine/src/main/java/org/springframework/cloud/starter/turbine/TurbineDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
turbine
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
TurbineDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
TurbineDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-turbine is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-turbine"
);
}
}
spring-cloud-starter-turbine/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.TurbineDeprecationWarningAutoConfiguration
\ No newline at end of file
spring-cloud-starter-zuul/src/main/java/org/springframework/cloud/starter/zuul/ZuulDeprecationWarningAutoConfiguration.java
0 → 100644
View file @
c8d024c2
package
org
.
springframework
.
cloud
.
starter
.
zuul
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.context.annotation.Configuration
;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public
class
ZuulDeprecationWarningAutoConfiguration
{
private
static
final
Log
LOGGER
=
LogFactory
.
getLog
(
ZuulDeprecationWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
LOGGER
.
warn
(
"spring-cloud-starter-zuul is deprecated as of Spring Cloud Netflix 1.4.0, "
+
"please migrate to spring-cloud-starter-netflix-zuul"
);
}
}
spring-cloud-starter-zuul/src/resources/META-INF/spring.factories
0 → 100644
View file @
c8d024c2
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.zuul.ZuulDeprecationWarningAutoConfiguration
\ No newline at end of file
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