Spring Data Couchbase

org.springframework.data.couchbase.core.convert
Class AbstractCouchbaseConverter

java.lang.Object
  extended by org.springframework.data.couchbase.core.convert.AbstractCouchbaseConverter
All Implemented Interfaces:
InitializingBean, EntityConverter<CouchbasePersistentEntity<?>,CouchbasePersistentProperty,Object,CouchbaseDocument>, EntityReader<Object,CouchbaseDocument>, EntityWriter<Object,CouchbaseDocument>, CouchbaseConverter, CouchbaseWriter<Object,CouchbaseDocument>
Direct Known Subclasses:
MappingCouchbaseConverter

public abstract class AbstractCouchbaseConverter
extends Object
implements CouchbaseConverter, InitializingBean

An abstract CouchbaseConverter that provides the basics for the MappingCouchbaseConverter.

Author:
Michael Nitschinger

Field Summary
protected  CustomConversions conversions
          Holds the custom conversions.
protected  GenericConversionService conversionService
          Contains the conversion service.
protected  EntityInstantiators instantiators
          Contains the entity instantiators.
 
Constructor Summary
protected AbstractCouchbaseConverter(GenericConversionService conversionService)
          Create a new converter and hand it over the ConversionService
 
Method Summary
 void afterPropertiesSet()
          Do nothing after the properties set on the bean.
 ConversionService getConversionService()
          Return the conversion service.
 void setCustomConversions(CustomConversions conversions)
          Set the custom conversions.
 void setInstantiators(EntityInstantiators instantiators)
          Set the entity instantiators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.convert.EntityConverter
getMappingContext
 
Methods inherited from interface org.springframework.data.convert.EntityReader
read
 
Methods inherited from interface org.springframework.data.convert.EntityWriter
write
 

Field Detail

conversionService

protected final GenericConversionService conversionService
Contains the conversion service.


instantiators

protected EntityInstantiators instantiators
Contains the entity instantiators.


conversions

protected CustomConversions conversions
Holds the custom conversions.

Constructor Detail

AbstractCouchbaseConverter

protected AbstractCouchbaseConverter(GenericConversionService conversionService)
Create a new converter and hand it over the ConversionService

Parameters:
conversionService - the conversion service to use.
Method Detail

getConversionService

public ConversionService getConversionService()
Return the conversion service.

Specified by:
getConversionService in interface EntityConverter<CouchbasePersistentEntity<?>,CouchbasePersistentProperty,Object,CouchbaseDocument>
Returns:
the conversion service.

setCustomConversions

public void setCustomConversions(CustomConversions conversions)
Set the custom conversions.

Parameters:
conversions - the conversions.

setInstantiators

public void setInstantiators(EntityInstantiators instantiators)
Set the entity instantiators.

Parameters:
instantiators - the instantiators.

afterPropertiesSet

public void afterPropertiesSet()
Do nothing after the properties set on the bean.

Specified by:
afterPropertiesSet in interface InitializingBean

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.