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

com.tngtech.configbuilder.annotation.propertyloaderconfiguration.PropertyLocations Maven / Gradle / Ivy

Go to download

The Config Builder creates fully configured instances of config classes, using values from various sources like properties files, command line arguments etc.

There is a newer version: 1.8.1
Show newest version
package com.tngtech.configbuilder.annotation.propertyloaderconfiguration;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used to specify the locations at which the PropertyLoader searches for properties files.
* Usage: @PropertyLocations(directories = {"/home/user","resources"}, resourcesForClasses = {Config.class}, fromClassLoader = false) */ @PropertyLoaderConfigurationAnnotation(PropertyLocationsProcessor.class) @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface PropertyLocations { String[] directories() default {}; Class[] resourcesForClasses() default {}; boolean fromClassLoader() default false; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy