1 package hero.mapper; 2 3 25 26 import hero.interfaces.BnRoleLocal; 27 import hero.util.HeroException; 28 29 import org.apache.log4j.Category; 30 import java.util.Collection ; 31 import java.util.ArrayList ; 32 33 public class PropertiesMapper extends Mapper { 34 35 private static final Category log = Category.getInstance(LdapMapper.class); 37 38 39 public PropertiesMapper(String name, int type) { 40 super(name,type); 41 } 42 43 public Collection execute(Object bean, int type, BnRoleLocal role, String userName) throws HeroException { 44 log.debug("execute: type="+type+" role="+role.getName() + " instance creator =" + userName); 46 Collection user = new ArrayList (); 47 user.add(userName); 48 return (user); 49 } 50 51 52 } 53 | Popular Tags |