Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
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-boot-admin
Commits
c3be495a
Commit
c3be495a
authored
Jun 17, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boot admin
parent
05ef6ab9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
11 deletions
+46
-11
pom.xml
pom.xml
+1
-1
SpringBootAdmin.java
src/main/java/de/codecentric/boot/admin/SpringBootAdmin.java
+1
-1
WebappConfig.java
...n/java/de/codecentric/boot/admin/config/WebappConfig.java
+1
-1
RegistryController.java
...codecentric/boot/admin/controller/RegistryController.java
+3
-3
Application.java
...ain/java/de/codecentric/boot/admin/model/Application.java
+32
-1
ApplicationRegistry.java
...e/codecentric/boot/admin/service/ApplicationRegistry.java
+6
-2
RegisterExampleApp.java
...st/java/de/codecentric/boot/admin/RegisterExampleApp.java
+2
-2
No files found.
pom.xml
View file @
c3be495a
...
...
@@ -3,7 +3,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin
</artifactId>
<version>
0.0.1
-SNAPSHOT
</version>
<version>
1.0.0
-SNAPSHOT
</version>
<properties>
<spring-boot.version>
1.0.2.RELEASE
</spring-boot.version>
<spring.version>
4.0.3.RELEASE
</spring.version>
...
...
src/main/java/de/codecentric/SpringBootAdmin.java
→
src/main/java/de/codecentric/
boot/admin/
SpringBootAdmin.java
View file @
c3be495a
package
de
.
codecentric
;
package
de
.
codecentric
.
boot
.
admin
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
...
...
src/main/java/de/codecentric/config/WebappConfig.java
→
src/main/java/de/codecentric/
boot/admin/
config/WebappConfig.java
View file @
c3be495a
package
de
.
codecentric
.
config
;
package
de
.
codecentric
.
boot
.
admin
.
config
;
import
java.util.List
;
...
...
src/main/java/de/codecentric/controller/RegistryController.java
→
src/main/java/de/codecentric/
boot/admin/
controller/RegistryController.java
View file @
c3be495a
package
de
.
codecentric
.
controller
;
package
de
.
codecentric
.
boot
.
admin
.
controller
;
import
java.util.List
;
...
...
@@ -9,8 +9,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
de.codecentric.model.Application
;
import
de.codecentric.service.ApplicationRegistry
;
import
de.codecentric.
boot.admin.
model.Application
;
import
de.codecentric.
boot.admin.
service.ApplicationRegistry
;
@Controller
public
class
RegistryController
{
...
...
src/main/java/de/codecentric/model/Application.java
→
src/main/java/de/codecentric/
boot/admin/
model/Application.java
View file @
c3be495a
package
de
.
codecentric
.
model
;
package
de
.
codecentric
.
boot
.
admin
.
model
;
import
java.io.Serializable
;
...
...
@@ -34,4 +34,35 @@ public class Application implements Serializable {
return
ToStringBuilder
.
reflectionToString
(
this
,
ToStringStyle
.
SHORT_PREFIX_STYLE
);
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
id
==
null
)
?
0
:
id
.
hashCode
());
result
=
prime
*
result
+
((
url
==
null
)
?
0
:
url
.
hashCode
());
return
result
;
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
this
==
obj
)
return
true
;
if
(
obj
==
null
)
return
false
;
if
(
getClass
()
!=
obj
.
getClass
())
return
false
;
Application
other
=
(
Application
)
obj
;
if
(
id
==
null
)
{
if
(
other
.
id
!=
null
)
return
false
;
}
else
if
(!
id
.
equals
(
other
.
id
))
return
false
;
if
(
url
==
null
)
{
if
(
other
.
url
!=
null
)
return
false
;
}
else
if
(!
url
.
equals
(
other
.
url
))
return
false
;
return
true
;
}
}
src/main/java/de/codecentric/service/ApplicationRegistry.java
→
src/main/java/de/codecentric/
boot/admin/
service/ApplicationRegistry.java
View file @
c3be495a
package
de
.
codecentric
.
service
;
package
de
.
codecentric
.
boot
.
admin
.
service
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
@@ -7,7 +7,7 @@ import java.util.List;
import
org.apache.commons.lang3.Validate
;
import
org.springframework.stereotype.Service
;
import
de.codecentric.model.Application
;
import
de.codecentric.
boot.admin.
model.Application
;
@Service
public
class
ApplicationRegistry
{
...
...
@@ -21,6 +21,10 @@ public class ApplicationRegistry {
registry
.
add
(
app
);
}
public
boolean
isRegistered
(
Application
app
)
{
return
registry
.
contains
(
app
);
}
public
List
<
Application
>
getApplications
()
{
return
Collections
.
unmodifiableList
(
registry
);
}
...
...
src/test/java/de/codecentric/RegisterExampleApp.java
→
src/test/java/de/codecentric/
boot/admin/
RegisterExampleApp.java
View file @
c3be495a
package
de
.
codecentric
;
package
de
.
codecentric
.
boot
.
admin
;
import
org.springframework.web.client.RestTemplate
;
import
de.codecentric.model.Application
;
import
de.codecentric.
boot.admin.
model.Application
;
public
class
RegisterExampleApp
{
...
...
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