public class MongoMappingContext extends AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty> implements ApplicationContextAware
MappingContext for MongoDB using BasicMongoPersistentEntity and
BasicMongoPersistentProperty as primary abstractions.| Constructor and Description |
|---|
MongoMappingContext()
Creates a new
MongoMappingContext. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> BasicMongoPersistentEntity<T> |
createPersistentEntity(TypeInformation<T> typeInformation) |
MongoPersistentProperty |
createPersistentProperty(Field field,
PropertyDescriptor descriptor,
BasicMongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
void |
setApplicationContext(ApplicationContext applicationContext) |
protected boolean |
shouldCreatePersistentEntityFor(TypeInformation<?> type) |
addPersistentEntity, addPersistentEntity, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, initialize, onApplicationEvent, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrictpublic MongoMappingContext()
MongoMappingContext.protected boolean shouldCreatePersistentEntityFor(TypeInformation<?> type)
shouldCreatePersistentEntityFor in class AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>public MongoPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor, BasicMongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>protected <T> BasicMongoPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation)
createPersistentEntity in class AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwaresetApplicationContext in class AbstractMappingContext<BasicMongoPersistentEntity<?>,MongoPersistentProperty>BeansExceptionCopyright © 2011-2013-2013 SpringSource. All Rights Reserved.