public void foundDSF()

in jpa-container/src/main/java/org/apache/aries/jpa/container/impl/AriesEntityManagerFactoryBuilder.java [454:477]


	public void foundDSF(DataSourceFactory dsf) {
		boolean build = false;
		Map<String,Object> props = null;
		synchronized (this) {
			if(activeConnectionProvider == null) {
				activeConnectionProvider = dsf;
				build = true;
				props = activeProps == null ? new HashMap<String, Object>() :
					new HashMap<String, Object>(activeProps);
			}
		}
		
		if(build) {
			Properties punitProps = persistenceUnit.getProperties();
			for(String key : punitProps.stringPropertyNames()) {
				if(!props.containsKey(key)) {
					props.put(key, punitProps.get(key));
				}
			}
			
			DataSource ds = DSFTracker.createDataSource(dsf, props, persistenceUnit.getName());
			dataSourceReady(ds, props);
		}
	}