Module org.eclipse.yasson
Class DefaultConstructorCreator
java.lang.Object
org.eclipse.yasson.internal.components.DefaultConstructorCreator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,JsonbComponentInstanceCreator
Creates components instance with default constructor.
-
Field Summary
Fields inherited from interface org.eclipse.yasson.spi.JsonbComponentInstanceCreator
DEFAULT_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getOrCreateComponent
(Class<T> componentClass) Returns instance of JsonbComponent for desired class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.yasson.spi.JsonbComponentInstanceCreator
getPriority
-
Constructor Details
-
DefaultConstructorCreator
public DefaultConstructorCreator()
-
-
Method Details
-
getOrCreateComponent
Description copied from interface:JsonbComponentInstanceCreator
Returns instance of JsonbComponent for desired class.- Specified by:
getOrCreateComponent
in interfaceJsonbComponentInstanceCreator
- Type Parameters:
T
- Jsonb component type- Parameters:
componentClass
- component class- Returns:
- component instance
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-