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:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.mapping.context.MappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>

public class MongoMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>
implements org.springframework.context.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(org.springframework.context.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(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2011. All Rights Reserved.