1 23 24 package org.objectweb.jorm.mapper.mem.generator; 25 26 import org.apache.velocity.context.Context; 27 import org.objectweb.jorm.generator.api.MOP; 28 import org.objectweb.jorm.generator.lib.CommonGenerator; 29 import org.objectweb.jorm.generator.lib.CommonHelper; 30 import org.objectweb.jorm.api.PException; 31 import org.objectweb.jorm.metainfo.api.Class; 32 33 38 public class MemMappingMOP extends CommonHelper implements MOP { 39 41 public void initContext(Context ctx, Class clazz, 42 String projectName, 43 String mapperName) throws PException { 44 ctx.put("memTools", this); 45 } 46 47 public String [] getTemplateLibraries() { 48 String [] libs = {CommonGenerator.MAPPER_TEMPLATE_DIR + "mem/generator/MemMapping.vm"}; 49 return libs; 50 } 51 } 52 | Popular Tags |