diff options
Diffstat (limited to 'dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java')
-rw-r--r-- | dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java b/dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java index e3a422a..8b6e6d1 100644 --- a/dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java +++ b/dcaedt_catalog/commons/src/main/java/org/onap/sdc/dcae/catalog/commons/ProxyBuilder.java @@ -21,40 +21,18 @@ public class ProxyBuilder { public ProxyBuilder() { } -/* - public <T> T build(Map theData, Class<T> theType) { - return build(theData, this.context, theType); - } - - public <T> T build(Map theData, Map theContextData, Class<T> theType) { - return (T)java.lang.reflect.Proxy.newProxyInstance( - ProxyBuilder.class.getClassLoader(), - new Class[] { theType }, - new Proxy(theData, this)); - } -*/ + public <T> T build(Map theData, Class<T> theType) { return build(new JSONObject(theData), theType); } - - public <T> T build(Map theData, Map theContextData, Class<T> theType) { - return build(new JSONObject(theData), theContextData, theType); - } public <T> T build(JSONObject theData, Class<T> theType) { - return build(theData, this.context, theType); - } - - public <T> T build(JSONObject theData, Map theContextData, Class<T> theType) { return (T)java.lang.reflect.Proxy.newProxyInstance( - ProxyBuilder.class.getClassLoader(), - new Class[] { theType }, - new Proxy(theData, this)); + ProxyBuilder.class.getClassLoader(), + new Class[] { theType }, + new Proxy(theData, this)); } - - - public ProxyBuilder withConverter(final Function<Object, ?> theConverter, Class theType) { ConvertUtils.register(new Converter() { public Object convert(Class theToType, Object theValue) { |