Package org.exoplatform.services.rest.impl

Examples of org.exoplatform.services.rest.impl.FieldInjectorImpl


                  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 != 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();
View Full Code Here

TOP

Related Classes of org.exoplatform.services.rest.impl.FieldInjectorImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.