private Map < String , List < MongoElement > > getMongoElements ( ) throws Exception { for ( MongoElement mongo : serverConfig . getMongos ( ) ) { addMongoElementToMap ( mongo ) ; } for ( MongoDBElement mongoDB : serverConfig . getMongoDBs ( ) ) { if ( mongoDB . getMongo ( ) != null ) { addMongoElementToMap ( mongoDB . getMongo ( ) ) ; } } return mongoElements ; }
Creates a mapping of a Mongo server placeholder value to the one or more mongo elements in the server . xml containing that placeholder