forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2024-05-23-improve-reflective-registration-t…
…racing
- Loading branch information
Showing
164 changed files
with
3,764 additions
and
2,352 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
45 changes: 45 additions & 0 deletions
45
core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingDecorateBuildItem.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,45 @@ | ||
package io.quarkus.deployment.logging; | ||
|
||
import java.nio.file.Path; | ||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import org.jboss.jandex.ClassInfo; | ||
import org.jboss.jandex.CompositeIndex; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
/** | ||
* Contains information to decorate the Log output. Can be used by extensions that output the log / stacktraces, | ||
* for example the error page. | ||
* | ||
* Also see io.quarkus.runtime.logging.DecorateStackUtil to assist with the decoration | ||
*/ | ||
public final class LoggingDecorateBuildItem extends SimpleBuildItem { | ||
private final Path srcMainJava; | ||
private final CompositeIndex knowClassesIndex; | ||
|
||
public LoggingDecorateBuildItem(Path srcMainJava, CompositeIndex knowClassesIndex) { | ||
this.srcMainJava = srcMainJava; | ||
this.knowClassesIndex = knowClassesIndex; | ||
} | ||
|
||
public Path getSrcMainJava() { | ||
return srcMainJava; | ||
} | ||
|
||
public CompositeIndex getKnowClassesIndex() { | ||
return knowClassesIndex; | ||
} | ||
|
||
public List<String> getKnowClasses() { | ||
List<String> knowClasses = new ArrayList<>(); | ||
Collection<ClassInfo> knownClasses = knowClassesIndex.getKnownClasses(); | ||
for (ClassInfo ci : knownClasses) { | ||
knowClasses.add(ci.name().toString()); | ||
} | ||
return knowClasses; | ||
} | ||
|
||
} |
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
Oops, something went wrong.