public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
public void getProperties(PropertyCallback callback, String prefix) { for (int i = 0; i < props.length; i++) { Method getter = props[i].getReadMethod(); if (getter == null) continue; if (!isHandledType(getter.getReturnType())) { //System.err.println("Ignoring " + props[i].getName() +" " + getter.getReturnType()); continue; } String name = props[i].getName(); try { Object result = getter.invoke(obj, NULL_ARG); //System.err.println("PROP " + name +": " + result); if (result != null) { callback.foundProperty(obj, prefix, name, result); } } catch (IllegalAccessException ex) { LogLog.warn("Failed to get value of property " + name); } catch (InvocationTargetException ex) { if (ex.getTargetException() instanceof InterruptedException || ex.getTargetException() instanceof InterruptedIOException) { Thread.currentThread().interrupt(); } LogLog.warn("Failed to get value of property " + name); } catch (RuntimeException ex) { LogLog.warn("Failed to get value of property " + name); } } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
public void getProperties(PropertyCallback callback, String prefix) { for (int i = 0; i < props.length; i++) { Method getter = props[i].getReadMethod(); if (getter == null) continue; if (!isHandledType(getter.getReturnType())) { //System.err.println("Ignoring " + props[i].getName() +" " + getter.getReturnType()); continue; } String name = props[i].getName(); try { Object result = getter.invoke(obj, NULL_ARG); //System.err.println("PROP " + name +": " + result); if (result != null) { callback.foundProperty(obj, prefix, name, result); } } catch (Exception ex) { LogLog.warn("Failed to get value of property " + name); } } }
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
continue; if (!isHandledType(getter.getReturnType())) {
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
public void getProperties(PropertyCallback callback, String prefix) { for (int i = 0; i < props.length; i++) { Method getter = props[i].getReadMethod(); if (getter == null) continue; if (!isHandledType(getter.getReturnType())) { //System.err.println("Ignoring " + props[i].getName() +" " + getter.getReturnType()); continue; } String name = props[i].getName(); try { Object result = getter.invoke(obj, NULL_ARG); //System.err.println("PROP " + name +": " + result); if (result != null) { callback.foundProperty(obj, prefix, name, result); } } catch (Exception ex) { LogLog.warn("Failed to get value of property " + name); } } }
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
public void getProperties(PropertyCallback callback, String prefix) { for (int i = 0; i < props.length; i++) { Method getter = props[i].getReadMethod(); if (getter == null) continue; if (!isHandledType(getter.getReturnType())) { //System.err.println("Ignoring " + props[i].getName() +" " + getter.getReturnType()); continue; } String name = props[i].getName(); try { Object result = getter.invoke(obj, NULL_ARG); //System.err.println("PROP " + name +": " + result); if (result != null) { callback.foundProperty(obj, prefix, name, result); } } catch (Exception ex) { LogLog.warn("Failed to get value of property " + name); } } }
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }
protected void printOptions(PrintWriter out, Object obj, String fullname) { out.println(fullname + "=" + obj.getClass().getName()); PropertyGetter.getProperties(obj, this, fullname + "."); }
public void getProperties(PropertyCallback callback, String prefix) { for (int i = 0; i < props.length; i++) { Method getter = props[i].getReadMethod(); if (getter == null) continue; if (!isHandledType(getter.getReturnType())) { //System.err.println("Ignoring " + props[i].getName() +" " + getter.getReturnType()); continue; } String name = props[i].getName(); try { Object result = getter.invoke(obj, NULL_ARG); //System.err.println("PROP " + name +": " + result); if (result != null) { callback.foundProperty(obj, prefix, name, result); } } catch (Exception ex) { LogLog.warn("Failed to get value of property " + name); } } }
public static void getProperties(Object obj, PropertyCallback callback, String prefix) { try { new PropertyGetter(obj).getProperties(callback, prefix); } catch (IntrospectionException ex) { LogLog.error("Failed to introspect object " + obj, ex); } }