spring-framework / org.springframework.core.style

Package org.springframework.core.style

Types

DefaultToStringStyler

open class DefaultToStringStyler : ToStringStyler

Spring's default toString() styler.

This class is used by ToStringCreator to style toString() output in a consistent manner according to Spring conventions.

DefaultValueStyler

open class DefaultValueStyler : ValueStyler

Converts objects to String form, generally for debugging purposes, using Spring's toString styling conventions.

Uses the reflective visitor pattern underneath the hood to nicely encapsulate styling algorithms for each type of styled object.

StylerUtils

abstract class StylerUtils

Simple utility class to allow for convenient access to value styling logic, mainly to support descriptive logging messages.

For more sophisticated needs, use the ValueStyler abstraction directly. This class simply uses a shared DefaultValueStyler instance underneath.

ToStringCreator

open class ToStringCreator

Utility class that builds pretty-printing toString() methods with pluggable styling conventions. By default, ToStringCreator adheres to Spring's toString() styling conventions.