You can set those values static in a interface-file:
public interface ConnectionSettings{
public final static String
DRIVER = "",
ADDRESS = "";
}
and then use it in another class:
public class DBConnector implements ConnectionSettings{
public void someWiredFunction(){
conPool pool= new conPool (
DRIVER,
"jdbc:mysql://" + ADDRESS +"/",
"mysql",
"mysql",
0,
20 ,
true
);
}
}
or do you want them as properties that can be changed later at the product?