-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #36 - view of java.util.Date as readable date
- Loading branch information
1 parent
a451345
commit 2ce2681
Showing
2 changed files
with
80 additions
and
25 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
admin-tools-demo-core/src/main/java/de/chandre/admintool/ExampleMXBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package de.chandre.admintool; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.util.Date; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
import de.chandre.admintool.core.AdminToolConfig; | ||
|
||
@Component | ||
public class ExampleMXBean implements AdminToolConfig { | ||
|
||
public Date getDate() { | ||
return new Date(); | ||
} | ||
|
||
public LocalDate getLocalDate() { | ||
return LocalDate.now(); | ||
} | ||
|
||
public LocalDateTime getLocalDateTime() { | ||
return LocalDateTime.now(); | ||
} | ||
|
||
public Double getDouble() { | ||
return Double.valueOf(123.456d); | ||
} | ||
|
||
public double getPrimitiveDouble() { | ||
return 654.321d; | ||
} | ||
|
||
@Override | ||
public void printConfig() { | ||
|
||
} | ||
|
||
@Override | ||
public boolean isEnabled() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters