Popularity
5.7
Growing
Activity
6.1
Growing
876
53
202

Code Quality Rank: L4
Programming language: Java
License: BSD 3-clause "New" or "Revised" License
Tags: Configuration    
Latest version: v1.0.12

owner alternatives and similar libraries

Based on the "Configuration" category.
Alternatively, view owner alternatives based on common mentions on social networks and blogs.

  • config

    configuration library for JVM languages using HOCON files
  • centraldogma

    Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
  • Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
  • cfg4j

    Modern configuration library for distributed apps written in Java.
  • KAConf

    KickAss Configuration. An annotation-based configuration system for Java and Kotlin
  • dotenv

    A twelve-factor configuration (12factor.net/config) library for Java 8+
  • Gestalt

    A Java configuration library that allows you to build your configurations from multiple sources, merges them and convert them into an easy-to-use typesafe configuration class. A simple but powerful interface allows you to navigate to a path within your configurations and retrieve a configuration object, list, or a primitive value.
  • Configur8

    Nano-library which provides the ability to define typesafe (!) configuration templates for applications.
  • ini4j

    Provides an API for handling Windows' INI files.

Do you think we are missing an alternative of owner or a related project?

Add another 'Configuration' Library

README

OWNER

OWNER, an API to ease Java property files usage.

Build Status Coverage Status security status stability status Built with Maven

INTRODUCTION

The goal of OWNER API is to minimize the code required to handle application configuration through Java properties files.

Full documentation available on project website.

BASIC USAGE

The approach used by OWNER APIs, is to define a Java interface associated to a properties file.

Suppose your properties file is defined as ServerConfig.properties:

port=80
hostname=foobar.com
maxThreads=100

To access this property you need to define a convenient Java interface in ServerConfig.java:

public interface ServerConfig extends Config {
    int port();
    String hostname();
    int maxThreads();
}

We'll call this interface the Properties Mapping Interface or just Mapping Interface since its goal is to map Properties into a an easy to use piece of code.

Then, you can use it from inside your code:

public class MyApp {
    public static void main(String[] args) {
        ServerConfig cfg = ConfigFactory.create(ServerConfig.class);
        System.out.println("Server " + cfg.hostname() + ":" + cfg.port() +
                           " will run " + cfg.maxThreads());
    }
}

But this is just the tip of the iceberg.

Continue reading here: Basic usage.

DOWNLOAD

Public Releases can be downloaded from GitHub Releases page or Maven Central Repository.

DOCUMENTATION

Make sure to have a look at the documentation on project website to learn how flexible and powerful OWNER is, and why you may need it!

Chinese documentation is provided by Yunfeng Cheng via a GitHub independent project at this address.

LICENSE

OWNER is released under the BSD license. See LICENSE file included for the details.


*Note that all licence references and agreements mentioned in the owner README section above are relevant to that project's source code only.