<dependency>
<groupId>org.n52.oxf</groupId>
<artifactId>annotations</artifactId>
<version>1.1.0</version>
</dependency>
import org.n52.faroe.annotation.Description;
import org.n52.faroe.annotation.Identifier;
import org.n52.faroe.annotation.Label;
import org.n52.faroe.annotation.Settings;
import org.n52.faroe.settings.AbstractSettings;
@Settings(namespace = "mylibrary", propertiesFile = "mylibrary.properties")
@Label("My Library Settings")
public class MyLibrarySettings extends AbstractSettings {
@Identifier
@Label("API Key")
@Description("The API key used for authentication")
private String apiKey;
}
public class MyLibrary {
public static void main(String[] args) {
MyLibrarySettings settings = new MyLibrarySettings();
String apiKey = settings.getApiKey();
System.out.println("API Key: " + apiKey);
}
}