Uses of Interface
org.apache.juneau.commons.function.Snippet
Packages that use Snippet
Package
Description
Assertions API
Language utilities including value wrappers, version management, string formatting,
state enums, and other common language constructs.
Lightweight logging utilities built on top of
java.util.logging.Thread-safe system property access with support for global and per-thread overrides,
making it useful for unit tests and configuration management.
Common internal utilities.
-
Uses of Snippet in org.apache.juneau.bct.assertions
Methods in org.apache.juneau.bct.assertions with parameters of type SnippetModifier and TypeMethodDescriptionstatic final ThrowableAssertion<Throwable>Assertions.assertThrown(Snippet snippet) Executes an arbitrary snippet of code and captures anything thrown from it as a Throwable assertion. -
Uses of Snippet in org.apache.juneau.commons.lang
Methods in org.apache.juneau.commons.lang with parameters of type Snippet -
Uses of Snippet in org.apache.juneau.commons.logging
Methods in org.apache.juneau.commons.logging with parameters of type SnippetModifier and TypeMethodDescriptionSame asLogRecordCapture.quietly(String, Snippet), keyed by the logger's class name.Runs a block while capturing, and keeping off the console, everything logged to the named logger or any of its descendants. -
Uses of Snippet in org.apache.juneau.commons.settings
Methods in org.apache.juneau.commons.settings with parameters of type SnippetModifier and TypeMethodDescriptionstatic FunctionalPropertyStoreFunctionalPropertyStore.of(UnaryOperator<String> reader, BiConsumer<String, String> writer, Consumer<String> unsetter, Snippet clearer) Creates a new store from the specified functions.Constructors in org.apache.juneau.commons.settings with parameters of type SnippetModifierConstructorDescriptionFunctionalPropertyStore(UnaryOperator<String> reader, BiConsumer<String, String> writer, Consumer<String> unsetter, Snippet clearer) Constructor. -
Uses of Snippet in org.apache.juneau.commons.utils
Methods in org.apache.juneau.commons.utils with parameters of type SnippetModifier and TypeMethodDescriptionstatic voidRuns the specified snippet, silently swallowing any thrown exception.static voidThrowableUtils.runQuietly(Snippet snippet) Runs a snippet, silently ignoring any exception.static voidRuns a snippet; wraps any checked throwable inRuntimeException.static voidThrowableUtils.safe(Snippet snippet, Function<Throwable, RuntimeException> exceptionMapper) Runs a snippet; maps any checked throwable via the provided function.