Announcement Announcement Module
Collapse
No announcement yet.
splitting mongo custom-converters into multiple context files ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • splitting mongo custom-converters into multiple context files ?

    This is my configuration :
    Code:
    		<org.springframework.version>3.1.0.RELEASE</org.springframework.version>
    		<spring.data.mongo.version>1.0.0.RC1</spring.data.mongo.version>
    Is it possible to split from this 1 spring context file :
    HTML Code:
    	<mongo:mapping-converter base-package="my.package.converter">
    		<mongo:custom-converters>
    			<mongo:converter>
    				<bean class="my.package.converter.ClassAbcReadConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.ClassAbcWriteConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassDefReadConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassDefWriteConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassGhiWriteConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassGhiReadConverter" />
    			</mongo:converter>
    		</mongo:custom-converters>
    	</mongo:mapping-converter>
    into 2 spring context files (in different maven modules) like these below ?
    file1-context.xml
    HTML Code:
    <mongo:mapping-converter base-package="my.package.converter">
    		<mongo:custom-converters>
    			<mongo:converter>
    				<bean class="my.package.converter.ClassAbcReadConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.ClassAbcWriteConverter" />
    			</mongo:converter>
    		</mongo:custom-converters>
    	</mongo:mapping-converter>
    file2-context.xml
    HTML Code:
    	<mongo:mapping-converter base-package="my.package.converter">
    		<mongo:custom-converters>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassDefReadConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassDefWriteConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassGhiWriteConverter" />
    			</mongo:converter>
    			<mongo:converter>
    				<bean class="my.package.converter.subpackage.ClassGhiReadConverter" />
    			</mongo:converter>
    		</mongo:custom-converters>
    	</mongo:mapping-converter>
    Is there any helpful attributes for 'merging' for mongo converters?
    Last edited by albert_kam; Jan 19th, 2012, 11:48 PM.
Working...
X