Examples of map()


Examples of ma.glasnost.orika.impl.ConfigurableMapper.map()

            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals(MyEnum.one, t.getDirectE());
    }
   
    @Test
    @Concurrent(200)
View Full Code Here

Examples of ma.glasnost.orika.impl.mapping.strategy.MappingStrategy.map()

            }
           
            D existingResult = (D) context.getMappedObject(sourceObject, destinationType);
            if (existingResult == null) {
                MappingStrategy strategy = resolveMappingStrategy(sourceObject, sourceType, destinationType, false, context);
                existingResult = (D) strategy.map(sourceObject, null, context);
            }
            return existingResult;
           
        } catch (MappingException e) {
            /* don't wrap our own exceptions */
 
View Full Code Here

Examples of net.freedom.gj.beans.mapper.BeanMapper.map()

        // get an instance of bean mapper
        BeanMapper mapper = configureBeanMapper();

        // map object A to another object B
        EntityBeanB b2 = mapper.map(b1, new EntityBeanB());

        // Assert for correctness
        assertEquals(b1.getMyDate().toString(), (String)b2.getExtension().get("myDate") );
        assertEquals(b1.getName(), b2.getExtension().get("myName") );
        assertNotNull(b2.getEntityGroups());
View Full Code Here

Examples of org.apache.catalina.Context.map()

        Context context = (Context) getContainer();

        // Select the Wrapper to be used for this Request
        Wrapper wrapper = null;
        try {
            wrapper = (Wrapper) context.map(request, true);
        } catch (IllegalArgumentException e) {
            badRequest(requestURI,
                       (HttpServletResponse) response.getResponse());
            return;
        }
View Full Code Here

Examples of org.apache.catalina.Host.map()

            return (null);

        // Use the host mapper to match the uri to a context
        try {
            Host host = (Host) context.getParent();
            Context child = host.map(uri);
            if (child != null) {
              // Without crossContext, can only return the current context
                if (context.getCrossContext()) {
                  return child.getServletContext();
                } else {
View Full Code Here

Examples of org.apache.catalina.Mapper.map()

        Mapper mapper = findMapper(request.getRequest().getProtocol());
        if (mapper == null)
            return (null);

        // Use this Mapper to perform this mapping
        return (mapper.map(request, update));

    }


    /**
 
View Full Code Here

Examples of org.apache.catalina.core.StandardHost.map()

            return;     // NOTE - Not much else we can do generically
        }

        // Select the Context to be used for this Request
        StandardHost host = (StandardHost) getContainer();
        Context context = (Context) host.map(request, true);
        if (context == null) {
            ((HttpServletResponse) response.getResponse()).sendError
                (HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                 sm.getString("standardHost.noContext"));
            return;
View Full Code Here

Examples of org.apache.derby.iapi.services.property.PropertySetCallback.map()

          Serviceable s;
          if ((s = psc.apply(key,value,d)) != null)
            ((TransactionManager) tc).addPostCommitWork(s);
          if (mappedValue == null)
             mappedValue = psc.map(key, value, d);
        }
      }
    }
    return mappedValue;
  }
View Full Code Here

Examples of org.apache.falcon.converter.OozieFeedMapper.map()

        Path bundlePath = new Path(ClusterHelper.getLocation(cluster, "staging"), EntityUtil.getStagingPath(feed));
        Feed feedClone = (Feed) feed.copy();
        EntityUtil.setStartDate(feedClone, clusterName, startDate);

        AbstractOozieEntityMapper<Feed> mapper = new OozieFeedMapper(feedClone);
        if (!mapper.map(cluster, bundlePath)) {
            return null;
        }
        return createAppProperties(clusterName, bundlePath, user);
    }
View Full Code Here

Examples of org.apache.falcon.converter.OozieProcessMapper.map()

        Path bundlePath = new Path(ClusterHelper.getLocation(cluster, "staging"), EntityUtil.getStagingPath(process));
        Process processClone = (Process) process.copy();
        EntityUtil.setStartDate(processClone, clusterName, startDate);

        OozieProcessMapper mapper = new OozieProcessMapper(processClone);
        if (!mapper.map(cluster, bundlePath)) {
            return null;
        }

        Properties properties = createAppProperties(clusterName, bundlePath, user);
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.