Commit 43f1d4d7 authored by Cristina Cocho's avatar Cristina Cocho

Work done in creation & deletion of servants. Now it is possible to configure...

Work done in creation & deletion of servants. Now it is possible to configure and unconfigure references. Removed methods unused.
parent d81edde7
......@@ -152,7 +152,39 @@ public class PropertyManager {
e.printStackTrace();
}
}
public boolean createAllPropertiesForDriver(String driverName, String driverType) {
boolean clientFilesExist = readPropertiesClientFilesFor(driverType);
if (clientFilesExist) {
Controller controller = DriverManager.getInstance().getDriver(driverName);
createPropertiesForController((Servant)controller); // Revise the name of the method
if (dynamicPropertiesByControllerType != null && dynamicPropertiesByControllerType.containsKey(((Servant)controller).getType())) {
createDynamicPropertiesForController((Servant)controller);
}
}
return clientFilesExist;
}
/*
*
*/
public boolean createAllPropertiesForController(String controllerName, String controllerType) {
boolean clientFilesExist = readPropertiesClientFilesFor(controllerType);
if (clientFilesExist) {
try {
// Ask Helene why the getDriver from DriverManager does not throw an exception
Controller controller = ControllerManager.getInstance().getController(controllerName);
createPropertiesForController((Servant) controller); // Revise the name of the method
if (dynamicPropertiesByControllerType != null && dynamicPropertiesByControllerType.containsKey(((Servant) controller).getType())) {
createDynamicPropertiesForController((Servant) controller);
}
} catch (ControllerNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return clientFilesExist;
}
public void createInheritedProperties(String type, String superType) {
try {
......
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