Change-Id: If961ca134c14239608331ca3a0251e8d0597a42d
Issue-ID: AAI-711
Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
*/
package org.onap.aai.introspection;
*/
package org.onap.aai.introspection;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
import org.json.simple.JSONObject;
import org.onap.aai.schema.enums.ObjectMetadata;
import org.onap.aai.schema.enums.PropertyMetadata;
import org.json.simple.JSONObject;
import org.onap.aai.schema.enums.ObjectMetadata;
import org.onap.aai.schema.enums.PropertyMetadata;
import java.util.UUID;
public class JSONStrategy extends Introspector {
import java.util.UUID;
public class JSONStrategy extends Introspector {
+ private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(JSONStrategy.class);
private JSONObject json = null;
private String namedType = "";
private JSONObject json = null;
private String namedType = "";
try {
return this.getClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
try {
return this.getClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
+ LOGGER.error(e.getMessage(),e);
try {
return this.getGenericTypeClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
try {
return this.getGenericTypeClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
+ LOGGER.error(e.getMessage(),e);