org.springframework.data.document.mongodb.config
Class MongoRepositoryConfigParser
java.lang.Object
org.springframework.data.document.mongodb.config.MongoRepositoryConfigParser
public class MongoRepositoryConfigParser
- extends
org.springframework.beans.factory.xml.BeanDefinitionParser
to create
Mongo DB repositories from classpath scanning or manual definition.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAPPING_CONTEXT_DEFAULT
private static final java.lang.String MAPPING_CONTEXT_DEFAULT
- See Also:
- Constant Field Values
MongoRepositoryConfigParser
public MongoRepositoryConfigParser()
getGlobalRepositoryConfigInformation
protected SimpleMongoRepositoryConfiguration getGlobalRepositoryConfigInformation(org.w3c.dom.Element element)
postProcessBeanDefinition
protected void postProcessBeanDefinition(SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration context,
BeanDefinitionBuilder builder,
BeanDefinitionRegistry registry,
java.lang.Object beanSource)
getMappingContextReference
private java.lang.String getMappingContextReference(SimpleMongoRepositoryConfiguration.MongoRepositoryConfiguration config,
BeanDefinitionRegistry registry)
- Returns the bean name of a
MappingContext
to be wired. Will inspect the namespace attribute first and if no
config is found in that place it will try to lookup the default one. Will return null if neither one is
available.
- Parameters:
config
- registry
-
- Returns: