Examples of Mapper


Examples of artemis.annotations.Mapper

        public static void config(Object target, World world) {
            try {
                Class<?> clazz = target.getClass();
                for(Field field : clazz.getDeclaredFields()) {
                    Mapper annotation = field.getAnnotation(Mapper.class);
                    if(annotation != null && Mapper.class.isAssignableFrom(Mapper.class)) {
                        ParameterizedType genericType = (ParameterizedType)field.getGenericType();
                        Class componentType = (Class)genericType.getActualTypeArguments()[0];

                        field.setAccessible(true);
View Full Code Here

Examples of com.cognifide.slice.mapper.api.Mapper

  public CQMapperFactory(final SlingMapperFactory slingMapperFactory) {
    this.slingMapperFactory = slingMapperFactory;
  }

  public Mapper getMapper() {
    final Mapper mapper = slingMapperFactory.getMapper();
    mapper.registerFieldProcessor(new ImageFieldProcessor());
    return mapper;
  }
View Full Code Here

Examples of com.dotcms.repackage.com.thoughtworks.xstream.mapper.Mapper

        //http://jira.dotmarketing.net/browse/DOTCMS-6059
        if(clazz.equals(DashboardSummary404.class) || clazz.equals(DashboardUserPreferences.class)){
          _xstream.addDefaultImplementation(com.dotcms.repackage.net.sf.hibernate.collection.Set.class, java.util.Set.class);
          _xstream.addDefaultImplementation(com.dotcms.repackage.net.sf.hibernate.collection.List.class, java.util.List.class);
          _xstream.addDefaultImplementation(com.dotcms.repackage.net.sf.hibernate.collection.Map.class, java.util.Map.class);
          Mapper mapper = _xstream.getMapper();
          _xstream.registerConverter(new HibernateCollectionConverter(mapper));
          _xstream.registerConverter(new HibernateMapConverter(mapper));
        }

        /*
 
View Full Code Here

Examples of com.github.jmkgreen.morphia.mapping.Mapper

       print(e);
  }

    @Test(expected=MappingException.class)
    public void getKeyWithNullThrowsException() throws MappingException {
        Mapper mapper = new DefaultMapper();
        Key<Employee> result = mapper.getKey(null);
    }
View Full Code Here

Examples of com.google.code.morphia.mapping.Mapper

            JSONObject detailsAsJson = (JSONObject) dbObject.get("details");
            DBObject details =  BasicDBObjectBuilder.start(detailsAsJson).get();
            dbObject.put("details",details);
        }

        return (SobaMessage) new Mapper().fromDBObject(SobaMessage.class,dbObject, new DefaultEntityCache());
    }
View Full Code Here

Examples of com.hazelcast.mapreduce.Mapper

        try {
            ValidationUtil.isNotNull(jobTracker, "jobTracker");
            KeyValueSource<K, V> keyValueSource = KeyValueSource.fromMultiMap(this);
            Job<K, V> job = jobTracker.newJob(keyValueSource);
            Mapper mapper = aggregation.getMapper(supplier);
            CombinerFactory combinerFactory = aggregation.getCombinerFactory();
            ReducerFactory reducerFactory = aggregation.getReducerFactory();
            Collator collator = aggregation.getCollator();

            MappingJob mappingJob = job.mapper(mapper);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper

    public void testMapper() throws Exception {

        final Person entity = getEntity();
        final PersonDTO dto = getDto();

        final Mapper mapper = new DozerBasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }
View Full Code Here

Examples of com.orientechnologies.orient.test.domain.whiz.Mapper

    super.afterMethod();
  }

  public void testIndexMap() {
    final Mapper mapper = new Mapper();
    Map<String, Integer> map = new HashMap<String, Integer>();

    map.put("key1", 10);
    map.put("key2", 20);

    mapper.setIntMap(map);
    database.save(mapper);

    final List<ODocument> resultByKey = database.command(new OCommandSQL("select key, rid from index:mapIndexTestKey")).execute();

    Assert.assertNotNull(resultByKey);
View Full Code Here

Examples of com.sun.grizzly.util.http.mapper.Mapper

        for (Connector connector : connectors) {
            PECoyoteConnector conn = (PECoyoteConnector) connector;
            String name = conn.getName();
            for (String listenerName : listenerNames) {
                if (name.equals(listenerName)) {
                    Mapper mapper = conn.getMapper();
                    try {
                        mapper.setDefaultContextPath(virtualServer.getName(),
                                defaultContextPath);
                        for (String alias : virtualServer.findAliases()) {
                            mapper.setDefaultContextPath(alias,
                                    defaultContextPath);
                        }
                        virtualServer.setDefaultContextPath(defaultContextPath);
                    } catch (Exception e) {
                        throw new LifecycleException(e);
View Full Code Here

Examples of com.thoughtworks.xstream.mapper.Mapper

        registerConverter(new AssociatedConverterImpl(this), -10);
    }

    @Override
    protected MapperWrapper wrapMapper(MapperWrapper next) {
        Mapper m = new CompatibilityMapper(new MapperWrapper(next) {
            @Override
            public String serializedClass(Class type) {
                if (type != null && ImmutableMap.class.isAssignableFrom(type))
                    return super.serializedClass(ImmutableMap.class);
                else if (type != null && ImmutableList.class.isAssignableFrom(type))
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.