Skip to content

Commit 421bcc0

Browse files
lenzlenz
authored andcommitted
Cleanup after bug ari4java#6
1 parent 4d5d13d commit 421bcc0

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

classes/ch/loway/oss/ari4java/ARI.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,8 @@ public class ARI {
4646
private AriVersion version;
4747
private HttpClient httpClient;
4848
private WsClient wsClient;
49-
5049
private ActionEvents liveActionEvent = null;
5150

52-
// Map of interfaces (key) and implementations (value) for actions
53-
private Map<Class<?>, Class<?>> actionMap = new HashMap<Class<?>, Class<?>>();
54-
// Map of interfaces (key) and implementations (value) for models
55-
private Map<Class<?>, Class<?>> modelMap = new HashMap<Class<?>, Class<?>>();
56-
5751
public void setHttpClient(HttpClient httpClient) {
5852
this.httpClient = httpClient;
5953
}
@@ -67,40 +61,6 @@ public void setVersion(AriVersion version) throws ARIException {
6761
this.version = version;
6862
}
6963

70-
// public void setVersion(AriVersion version) throws ARIException {
71-
// String propFile = "ch/loway/oss/ari4java/generated/" + version.name().toLowerCase() + ".properties";
72-
// Properties prop = new Properties();
73-
// try {
74-
// URL propUrl = ClassLoader.getSystemResource(propFile);
75-
// if (propUrl == null) {
76-
// throw new ARIException("Properties file " + propFile + " not found");
77-
// }
78-
// prop.load(propUrl.openStream());
79-
// this.version = version;
80-
// actionMap.clear();
81-
// modelMap.clear();
82-
// for (Object key : prop.keySet()) {
83-
// if (key instanceof String && prop.get(key) instanceof String) {
84-
// try {
85-
// Class<?> apiClazz = ClassLoader.getSystemClassLoader().loadClass((String) key);
86-
// Class<?> implClazz = ClassLoader.getSystemClassLoader().loadClass((String) prop.get(key));
87-
// if (!apiClazz.isAssignableFrom(implClazz)) {
88-
// throw new ARIException(implClazz.getName() + " is not an implementation of " + apiClazz.getName());
89-
// }
90-
// if (BaseAriAction.class.isAssignableFrom(implClazz)) {
91-
// actionMap.put(apiClazz, implClazz);
92-
// } else {
93-
// modelMap.put(apiClazz, implClazz);
94-
// }
95-
// } catch (ClassNotFoundException e) {
96-
// throw new ARIException("Cannot find API class " + key + " or implementation " + prop.get(key));
97-
// }
98-
// }
99-
// }
100-
// } catch (IOException e) {
101-
// throw new ARIException("Cannot load properties file " + propFile);
102-
// }
103-
// }
10464

10565
/**
10666
* Get the implementation for a given action interface

0 commit comments

Comments
 (0)