Examples of FieldCallback


Examples of org.springframework.util.ReflectionUtils.FieldCallback

      if (associationModelAnnotation != null
          && StringUtils.hasText(associationModelAnnotation.idProperty())
          && !associationModelAnnotation.idProperty().equals("id")) {
        association.setPrimaryKey(associationModelAnnotation.idProperty());
      }
      ReflectionUtils.doWithFields(associationClass, new FieldCallback() {

        @Override
        public void doWith(Field field) throws IllegalArgumentException,
            IllegalAccessException {
          if (field.getAnnotation(ModelId.class) != null
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

      }
    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if ((Modifier.isPublic(field.getModifiers()) || hasReadMethod.contains(field.getName()))
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

  private void process(final Object bean, final String beanName) {
    final Class<?> targetClass = getTargetClass(bean);

    if (members == Members.FIELDS || members == Members.ALL) {
      doWithFields(targetClass, new FieldCallback() {
        @Override
        public void doWith(Field field) throws IllegalAccessException {
          withField(bean, beanName, targetClass, field);
        }
      }, filter);
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

        this.cache.put(valueClass, null);
      }
    }

    private void addIdFieldToCache(final Class<?> valueClass) {
      ReflectionUtils.doWithFields(valueClass, new FieldCallback() {
        public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
          if (field.getAnnotation(Id.class) != null) {
            field.setAccessible(true);
            HasJpa.this.cache.put(valueClass, field);
          }
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here

Examples of org.springframework.util.ReflectionUtils.FieldCallback

    }

    final List<ModelFieldBean> modelFields = new ArrayList<ModelFieldBean>();
    final List<AbstractAssociation> associations = new ArrayList<AbstractAssociation>();

    ReflectionUtils.doWithFields(clazz, new FieldCallback() {
      private final Set<String> fields = new HashSet<String>();

      @Override
      public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
        if (!fields.contains(field.getName())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.