Commit c9aaf763 authored by R.W.Majeed's avatar R.W.Majeed

use enum in annotation, more preference keys

parent 9fe37c06
......@@ -7,6 +7,8 @@ import java.lang.annotation.Target;
import javax.inject.Qualifier;
import org.aktin.dwh.PreferenceKey;
/**
* AKTIN preference. Can be used to inject preference values into any class.
* The preferences can not be changed during runtime.
......@@ -22,5 +24,5 @@ import javax.inject.Qualifier;
public @interface Preference {
// no default meaning a value is mandatory
//@Nonbinding
String key();
PreferenceKey key();
}
......@@ -7,8 +7,8 @@ package org.aktin.dwh;
*
*/
public enum PreferenceKey {
keystorePath("tls.keystore.path"),
keystorePath("tls.keystore.file"),
keystorePass("tls.keystore.pass"),
commonName("local.cn"),
organisationName("local.o"),
......@@ -16,7 +16,13 @@ public enum PreferenceKey {
locality("local.l"),
state("local.s"),
country("local.c"),
i2b2Project("i2b2.project"),
i2b2ServicePM("i2b2.service.pm"),
i2b2DatasourceCRC("i2b2.datasource.crc"),
rScriptBinary("rscript.binary")
;
private String key;
private PreferenceKey(String key){
this.key = key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment