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
879b31f3
Commit
879b31f3
authored
Mar 18, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Ordered to RegistrationBean
Fixes gh-507
parent
d0cd1df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
RegistrationBean.java
...ringframework/boot/context/embedded/RegistrationBean.java
+19
-1
No files found.
spring-boot/src/main/java/org/springframework/boot/context/embedded/RegistrationBean.java
View file @
879b31f3
...
...
@@ -22,6 +22,7 @@ import java.util.Map;
import
javax.servlet.Registration
;
import
org.springframework.core.Conventions
;
import
org.springframework.core.Ordered
;
import
org.springframework.util.Assert
;
/**
...
...
@@ -32,10 +33,12 @@ import org.springframework.util.Assert;
* @see FilterRegistrationBean
* @see ServletListenerRegistrationBean
*/
public
abstract
class
RegistrationBean
implements
ServletContextInitializer
{
public
abstract
class
RegistrationBean
implements
ServletContextInitializer
,
Ordered
{
private
String
name
;
private
int
order
=
Ordered
.
LOWEST_PRECEDENCE
;
private
boolean
asyncSupported
=
true
;
private
Map
<
String
,
String
>
initParameters
=
new
LinkedHashMap
<
String
,
String
>();
...
...
@@ -113,4 +116,19 @@ public abstract class RegistrationBean implements ServletContextInitializer {
}
}
/**
* @param order the order to set
*/
public
void
setOrder
(
int
order
)
{
this
.
order
=
order
;
}
/**
* @return the order
*/
@Override
public
int
getOrder
()
{
return
this
.
order
;
}
}
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