Coverage Report - com.buckosoft.PicMan.business.SpringGlue
 
Classes in this File Line Coverage Branch Coverage Complexity
SpringGlue
0%
0/8
0%
0/2
1.25
 
 1  
 /******************************************************************************
 2  
  * SpringGlue.java - Enable the two separate services to communicate
 3  
  * 
 4  
  * PicMan - The BuckoSoft Picture Manager in Java
 5  
  * Copyright(c) 2014 - Dick Balaska
 6  
  * 
 7  
  */
 8  
 package com.buckosoft.PicMan.business;
 9  
 
 10  
 /** This object exists to allow communication between the two separate servlets, DispatcherServlet and CXFServlet. <br>
 11  
  * Workaround that I can't figure out how to merge the separate Spring beanFactories. 
 12  
  * I think a better method would be to break out the business bean config and include it in each servlet config,
 13  
  * but this works for now, and I want to get it checked in working.
 14  
  * @author Dick Balaska
 15  
  * @since 2014/06/08
 16  
  * @version $Revision: 1.1 $ <br> $Date: 2014/06/09 03:16:18 $
 17  
  * @see <a href="http://cvs.buckosoft.com/Projects/PicMan/PicMan/src/main/java/com/buckosoft/PicMan/business/SpringGlue.java">SpringGlue.java</a>
 18  
  */
 19  
 public class SpringGlue {
 20  
 
 21  0
         private        static SpringGlue springGlue = null;
 22  
 
 23  
         private        static PicManFacade picMan;
 24  
         
 25  0
         public        SpringGlue() {}
 26  
         
 27  
         public static SpringGlue getInstance() {
 28  0
                 if (springGlue == null)
 29  0
                         springGlue = new SpringGlue();
 30  0
                 return(springGlue);
 31  
         }
 32  
 
 33  
         /**
 34  
          * @return the picManFacade
 35  
          */
 36  
         public PicManFacade getPicMan() {
 37  0
                 return SpringGlue.picMan;
 38  
         }
 39  
 
 40  
         /**
 41  
          * @param picManFacade the picManFacade to set
 42  
          */
 43  
         public void setPicMan(PicManFacade picMan) {
 44  0
                 SpringGlue.picMan = picMan;
 45  0
         }
 46  
         
 47  
 
 48  
         
 49  
 }