T - the value typepublic abstract class AbstractTypeCodec<T> extends Object implements TypeCodec<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractTypeCodec(Type type,
TypeCodecRegistry typeCodecRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected Constructor<T> |
getDefaultConstructor(Class<T> clazz) |
Class<T> |
getEncoderClass() |
T |
newInstance() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultInstance, documentHasId, generateIdIfAbsentFromDocument, getDocumentId, isCollectiblepublic AbstractTypeCodec(Type type, TypeCodecRegistry typeCodecRegistry)
protected Constructor<T> getDefaultConstructor(Class<T> clazz)
public T newInstance()
newInstance in interface TypeCodec<T>public Class<T> getEncoderClass()
getEncoderClass in interface org.bson.codecs.Encoder<T>Copyright © 2017 BILD GmbH & Co. KG. All rights reserved.