return BaseObjectModel.this.clazz.getDeclaredFields();
}
});
for (java.lang.reflect.Field jfield : jfields)
{
fields.add(new FieldInjectorImpl(clazz, jfield));
}
Class<?> sc = clazz.getSuperclass();
Package _package = clazz.getPackage();
String resourcePackageName = _package != null ? _package.getName() : null;
while (sc != Object.class)
{
for (java.lang.reflect.Field jfield : sc.getDeclaredFields())
{
int modif = jfield.getModifiers();
Package package1 = clazz.getPackage();
String scPackageName = package1 != null ? package1.getName() : null;
if (!Modifier.isPrivate(modif))
{
if (Modifier.isPublic(modif)
|| Modifier.isProtected(modif)
|| (!Modifier.isPrivate(modif)
&& ((resourcePackageName == null && scPackageName == null)
|| resourcePackageName.equals(scPackageName))))
{
FieldInjector inj = new FieldInjectorImpl(clazz, jfield);
// Skip not annotated field. They will be not injected from container.
if (inj.getAnnotation() != null)
{
fields.add(new FieldInjectorImpl(clazz, jfield));
}
}
}
}
sc = sc.getSuperclass();