Module org.eclipse.yasson
Class DefaultConstructorCreator
- java.lang.Object
-
- org.eclipse.yasson.internal.components.DefaultConstructorCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,JsonbComponentInstanceCreator
public class DefaultConstructorCreator extends Object implements JsonbComponentInstanceCreator
Creates components instance with default constructor.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.yasson.spi.JsonbComponentInstanceCreator
DEFAULT_PRIORITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<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, wait
-
Methods inherited from interface org.eclipse.yasson.spi.JsonbComponentInstanceCreator
getPriority
-
-
-
-
Method Detail
-
getOrCreateComponent
public <T> T getOrCreateComponent(Class<T> componentClass)
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
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-