Giter VIP home page Giter VIP logo

constretto-dropwizard's Introduction

Dropwizard Constretto Bundle

Build Status Coverage Status Maven Central

Compabilty

Constretto DropWizard Dropwizard Java
1.1 > 1.0 >= 8
1.0 < 1.0 >= 7

What is it for?

Dropwizard bundle that allows use of Constretto tags in yml-configuration like this:

config.yml:

database:
  # the JDBC URL
  url: jdbc:oracle:thin:@//oracle-testing:1521/name
  .staging.url: jdbc:oracle:thin:@//oracle-staging:1521/name
  .production.url: jdbc:oracle:thin:@//oracle-production:1521/name

logging:
  appenders:
    - .testing:
      type: console
      threshold: DEBUG
      target: stdout

    - .staging:
      type: console
      threshold: INFO
      target: stdout

Usage

import org.constretto.dropwizard.ConstrettoBundle;

public class MyApplication extends Application<Config> {

    @Override
    public void initialize(Bootstrap<Config> configBootstrap) {
        configBootstrap.addBundle(new ConstrettoBundle());
    }
}

Maven

This component is distributed through the Sonatype OSS Repository and should thus by widely available

Add the dependency to your pom file:

    <dependency>
        <groupId>org.constretto</groupId>
        <artifactId>constretto-dropwizard</artifactId>
        <version>1.1</version>
    </dependency>

Version 1.1

  • Support for Dropwizard 1.X (thus dropping support for Java 7). Thanks to @garyschulte for PR

Version 1.0

  • Release to Sonatype OSS

Version 0.3

  • Supports tagging of list elements

Version 0.2.1

  • Updated constretto dependencies to 2.1.4

Version 0.2

  • Allows tagging with '.env.' (preferred) in addition to '@env.'. The preferred variant makes it valid yaml syntax.
  • Wraps existing ConfigurationSourceProvider to allow chaining of providers
  • Eliminates issue where duplicate property keys in different structs is mixed up
  • Fixes issue where nested values in structs failed to resolve
  • Note: replacing properties in lists is not yet supported

Version 0.1

  • Supports basic replacement of tagged attributes.
  • Tagging uses the '@' sign (which makes the text illegal yaml syntax)

constretto-dropwizard's People

Contributors

zapodot avatar kjeivers avatar garyjive avatar

Stargazers

Ragunath Jawahar avatar Jan-Helge Bergesen avatar Morten Kjetland avatar  avatar

Watchers

Thor Åge Eldby avatar Kaare Nilsen avatar  avatar  avatar James Cloos avatar  avatar

Forkers

mastermind1981

constretto-dropwizard's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.