This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void run(TestDropwizardConfiguration configuration, Environment environment) | |
throws Exception | |
{ | |
env.lifecycle().addLifeCycleListener(new AbstractLifeCycleListener() | |
{ | |
@Override | |
public void lifeCycleStarting(LifeCycle event) | |
{ | |
if (!(event instanceof Server)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AzureYamlConfigurator | |
{ | |
final static Charset ENCODING = StandardCharsets.UTF_8; | |
String configureYaml(String fileName) throws IOException | |
{ | |
if (RoleEnvironment.isAvailable()) | |
{ | |
Map<String, String> propMap = RoleEnvironment.getConfigurationSettings(); | |
configureYaml(fileName, propMap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.asamaraw.dropwizardservice; | |
import java.security.Key; | |
import java.security.KeyStore; | |
import java.security.PrivateKey; | |
import javax.crypto.Cipher; | |
import lombok.extern.slf4j.Slf4j; |