Spring Data Document

org.springframework.data.mongodb.core.mapping
Class MongoMappingContext

java.lang.Object
  extended by org.springframework.data.mapping.context.AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>
      extended by org.springframework.data.mongodb.core.mapping.MongoMappingContext
All Implemented Interfaces:
Aware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, org.springframework.data.mapping.context.MappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>

public class MongoMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>
implements ApplicationContextAware

Author:
Jon Brisbin , Oliver Gierke [email protected]

Constructor Summary
MongoMappingContext()
          Creates a new MongoMappingContext.
 
Method Summary
protected
<T> BasicMongoPersistentEntity<T>
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
           
 MongoPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor, BasicMongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getEntityValidators, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoMappingContext

public MongoMappingContext()
Creates a new MongoMappingContext.

Method Detail

createPersistentProperty

public MongoPersistentProperty createPersistentProperty(Field field,
                                                        PropertyDescriptor descriptor,
                                                        BasicMongoPersistentEntity<?> owner,
                                                        org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Specified by:
createPersistentProperty in class org.springframework.data.mapping.context.AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>

createPersistentEntity

protected <T> BasicMongoPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
Specified by:
createPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

Spring Data Document

Copyright © 2012. All Rights Reserved.