I hope there is a better solution that this, but this works for me:
return new FileSystemXmlApplicationContext(
"./src/main/webapp/WEB-INF/applicationContext.xml" ) {
@SuppressWarnings( "unchecked" )
@Override
public < T > T getBean( final String name, final Class<
T > requiredType
) {
if ( name.equals( "baz" ) ) {
return (T)_bazRef;
}
return super.getBean( name, requiredType );
}
};
--
View this message in context:
http://camel.465427.n5.nabble.com/CamelSpringTestSupport-registry-bean-modification-tp5732127p5732128.html
Sent from the Camel - Users mailing list archive at Nabble.com.