Exemple #1
0
 public static PlacementReport getPlacementReport(PlacementReportEvent placementReportEvent) {
   switch (placementReportEvent.getReportType()) {
     case PlacementReportEvent.AcknowlegementFill:
       {
         return BeanFactory.getBean(AckPlacementReport.class);
       }
     case PlacementReportEvent.NormalFill:
       {
         return BeanFactory.getBean(FillPlacementReport.class);
       }
     case PlacementReportEvent.AutoCancelFill:
       {
         return BeanFactory.getBean(AutoCancelPlacementReport.class);
       }
     case PlacementReportEvent.NormalRejectFill:
       {
         return BeanFactory.getBean(RejectPlacementReport.class);
       }
     case PlacementReportEvent.CancelFill:
       {
         return BeanFactory.getBean(CancelFillPlacementReport.class);
       }
     case PlacementReportEvent.CancelRejectFill:
       {
         return BeanFactory.getBean(CancelRejectPlacementReport.class);
       }
     default:
       throw new IllegalArgumentException();
   }
 }
Exemple #2
0
 public static ProgramOrderDomain getInstance(String programOrderId) {
   ProgramOrderDomain programOrderDomain = BeanFactory.getBean(ProgramOrderDomain.class);
   programOrderDomain.programOrder = programOrderDomain.programOrderDao.find(programOrderId);
   return programOrderDomain;
 }
Exemple #3
0
 public static ProgramOrderDomain getInstance() {
   ProgramOrderDomain programOrderDomain = BeanFactory.getBean(ProgramOrderDomain.class);
   programOrderDomain.programOrder = new ProgramOrder();
   return programOrderDomain;
 }