com.tngtech.configbuilder.annotation.propertyloaderconfiguration.PropertyLocations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-builder Show documentation
Show all versions of config-builder Show documentation
The Config Builder creates fully configured instances of config classes, using values from various sources like properties files, command line arguments etc.
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 {
public String[] directories() default {};
public Class[] resourcesForClasses() default {};
public boolean fromClassLoader() default false;
}