MentaContainer

Compare Revisions

Ignore whitespace Rev 138 → Rev 139

/trunk/src/main/java/org/mentacontainer/util/InjectionUtils.java
354,6 → 354,20
}
return null;
}
public static String getKeyName(Object obj) {
if (obj instanceof Class<?>) {
Class<?> k = (Class<?>) obj;
String s = k.getSimpleName();
StringBuilder sb = new StringBuilder(s.length());
sb.append(s.substring(0, 1).toLowerCase());
if (s.length() > 1) {
sb.append(s.substring(1));
}
return sb.toString();
}
return obj.toString();
}
 
public static Method findMethodToGet(Class<? extends Object> target, String name) {