1 21 22 package com.jaspersoft.jasperserver.api.common.service.impl; 23 24 import java.util.Map ; 25 26 import com.jaspersoft.jasperserver.api.common.service.BeanForInterfaceFactory; 27 import com.jaspersoft.jasperserver.api.common.service.BeanForInterfaceImplementationFactory; 28 29 33 public class BeanForInterfaceImplementationFactoryImpl implements BeanForInterfaceImplementationFactory { 34 35 private BeanForInterfaceFactory factory = null; 36 private Map beanForInterfaceMappings = null; 37 38 41 public Object getBean(Class itfClass) { 42 return factory.getBean(getBeanForInterfaceMappings(), itfClass); 43 } 44 45 48 public String getBeanName(Class itfClass) { 49 return factory.getBeanName(getBeanForInterfaceMappings(), itfClass); 50 } 51 52 55 public BeanForInterfaceFactory getFactory() { 56 return factory; 57 } 58 59 62 public void setFactory(BeanForInterfaceFactory factory) { 63 this.factory = factory; 64 } 65 66 69 public Map getBeanForInterfaceMappings() { 70 return beanForInterfaceMappings; 71 } 72 73 76 public void setBeanForInterfaceMappings(Map beanForInterfaceMappings) { 77 this.beanForInterfaceMappings = beanForInterfaceMappings; 78 } 79 80 } 81 | Popular Tags |