Class DefaultConstructorCreator
- java.lang.Object
-
- org.eclipse.yasson.internal.components.DefaultConstructorCreator
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,JsonbComponentInstanceCreator
public class DefaultConstructorCreator extends java.lang.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(java.lang.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(java.lang.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 java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-