public class FactoryUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Consumer<Object> |
ACCEPT_UNKNOWN_TOKEN
A
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that does nothing. |
static Consumer<Object> |
DENY_UNKNOWN_TOKEN
A
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that throws an IllegalArgumentException. |
static Consumer<Object> |
LOG_UNKNOWN_TOKEN
A
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that logs the event via java logging. |
| Constructor and Description |
|---|
FactoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
unknownTokenMessage(Object token)
Returns an unknown token message for a given token.
|
public static final Consumer<Object> ACCEPT_UNKNOWN_TOKEN
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that does nothing.public static final Consumer<Object> LOG_UNKNOWN_TOKEN
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that logs the event via java logging.public static final Consumer<Object> DENY_UNKNOWN_TOKEN
Consumer to be used with FactoryHub.Collector.setUnknownTokenListener(Consumer)
that throws an IllegalArgumentException.Copyright © 2021 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.