-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Diagnostics, allowing developers to get advanced insight into the mappings and conversion performed by BeanMapper. This is especially useful when a developer feels that a mapping (usually a collection mapping) is taking an exorbitant amount of time.
- Loading branch information
1 parent
0a15cad
commit c98a705
Showing
32 changed files
with
1,431 additions
and
105 deletions.
There are no files selected for viewing
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
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
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
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
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
25 changes: 25 additions & 0 deletions
25
src/main/java/io/beanmapper/config/DiagnosticsConfiguration.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,25 @@ | ||
package io.beanmapper.config; | ||
|
||
import java.util.Optional; | ||
|
||
import io.beanmapper.utils.diagnostics.DiagnosticsDetailLevel; | ||
import io.beanmapper.utils.diagnostics.logging.DiagnosticsLogger; | ||
import io.beanmapper.utils.diagnostics.tree.DiagnosticsNode; | ||
|
||
public interface DiagnosticsConfiguration extends Configuration { | ||
|
||
boolean isInDiagnosticsMode(); | ||
|
||
<S, T> Optional<DiagnosticsNode<S, T>> getBeanMapperDiagnostics(); | ||
|
||
<S, T> void setBeanMapperDiagnostics(DiagnosticsNode<S, T> diagnostics); | ||
|
||
default Optional<DiagnosticsLogger> getDiagnosticsLogger(){ | ||
return Optional.empty(); | ||
} | ||
|
||
int getMappingDepth(); | ||
|
||
DiagnosticsDetailLevel getDiagnosticsDetailLevel(); | ||
|
||
} |
Oops, something went wrong.