- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
BeanManagerInstanceCreator
,DefaultConstructorCreator
Creates instances of JsonbComponents such as JsonbAdapter.
Yasson attempts to load the implementations using ServiceLoader
first. If there are multiple
implementations found the service provider with the highest priority is used. If there are no service providers found the
default implementation is used.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getOrCreateComponent
(Class<T> componentClass) Returns instance of JsonbComponent for desired class.default int
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault component priority.- See Also:
-
-
Method Details
-
getOrCreateComponent
Returns instance of JsonbComponent for desired class.- Type Parameters:
T
- Jsonb component type- Parameters:
componentClass
- component class- Returns:
- component instance
-
getPriority
default int getPriority()- Returns:
- the priority of the component
-