public void updated()

in jpa-container/src/main/java/org/apache/aries/jpa/container/impl/ManagedEMF.java [53:77]


	public void updated(Dictionary<String, ?> properties) throws ConfigurationException {
		
		if(properties == null) {
			if(configured.getAndSet(false)) {
				if (LOGGER.isDebugEnabled()) {
					LOGGER.debug("The configuration has been deleted for persistence unit {}. Destroying the EMF", pUnitName);
				}
				builder.closeEMF();
			} else {
				if (LOGGER.isDebugEnabled()) {
					LOGGER.debug("Ignoring the unset configuration for persistence unit {}", pUnitName);
				}
				return;
			}
		}
		
		Map<String, Object> overrides = (properties != null) ? asMap(properties) : null;
		LOGGER.info("Configuration received for persistence unit {}", pUnitName);
		if (LOGGER.isDebugEnabled()) {
			LOGGER.debug("Using properties override {}", overrides);
		}
		
		builder.createEntityManagerFactory(overrides);
		configured.set(true);
	}