All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.ingenieux.dropwizard.interpolation.EnvironmentVariableInterpolationBundle Maven / Gradle / Ivy

The newest version!
package br.com.ingenieux.dropwizard.interpolation;

import io.dropwizard.Bundle;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import org.apache.commons.lang.text.StrSubstitutor;

public class EnvironmentVariableInterpolationBundle implements Bundle
{
	@Override
	public void initialize( Bootstrap bootstrap )
	{
		bootstrap.setConfigurationSourceProvider(
				new SubstitutingSourceProvider(
						bootstrap.getConfigurationSourceProvider(),
						new StrSubstitutor( new EnvironmentVariableLookup() )
				)
		);
	}

	@Override
	public void run( Environment environment )
	{

	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy