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 TypeMethodDescriptionvoidclose()<T> TgetOrCreateComponent(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, waitMethods inherited from interface org.eclipse.yasson.spi.JsonbComponentInstanceCreator
getPriority
-
Constructor Details
-
DefaultConstructorCreator
public DefaultConstructorCreator()
-
-
Method Details
-
getOrCreateComponent
Description copied from interface:JsonbComponentInstanceCreatorReturns instance of JsonbComponent for desired class.- Specified by:
getOrCreateComponentin interfaceJsonbComponentInstanceCreator- Type Parameters:
T- Jsonb component type- Parameters:
componentClass- component class- Returns:
- component instance
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-