コード例 #1
0
 @Override
 public List<IntegrationBean> convertPresentationList(
     List<PresentationBean> presentationBeans, String scope) throws Exception {
   List<IntegrationBean> IntegrationBeans = new ArrayList<IntegrationBean>();
   for (PresentationBean presentationBean : presentationBeans) {
     IntegrationBean IntegrationBean =
         ((Mapper) dozerBeanMapperFactoryBean.getObject())
             .map(presentationBean, IntegrationBeanClass, scope);
     IntegrationBeans.add(IntegrationBean);
   }
   return IntegrationBeans;
 }
コード例 #2
0
 @Override
 public void convertPresentationList(
     List<PresentationBean> presentationBeans,
     List<IntegrationBean> integrationBeans,
     String scope)
     throws Exception {
   if (presentationBeans.size() != integrationBeans.size()) {
     throw new ListDiffersSizeException();
   }
   for (int i = 0; i < presentationBeans.size(); i++) {
     ((Mapper) dozerBeanMapperFactoryBean.getObject())
         .map(presentationBeans.get(i), integrationBeans.get(i), scope);
   }
 }
コード例 #3
0
 @Override
 public void convert(
     final IntegrationBean integrationBean, PresentationBean presentationBean, String scope)
     throws Exception {
   ((Mapper) dozerBeanMapperFactoryBean.getObject()).map(integrationBean, presentationBean, scope);
 }
コード例 #4
0
 @Override
 public PresentationBean convert(IntegrationBean integrationBean, String scope) throws Exception {
   return ((Mapper) dozerBeanMapperFactoryBean.getObject())
       .map(integrationBean, presentationBeanClass, scope);
 }