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 private static SpringGlue springGlue = null; 22 23 private static PicManFacade picMan; 24 25 public SpringGlue() {} 26 27 public static SpringGlue getInstance() { 28 if (springGlue == null) 29 springGlue = new SpringGlue(); 30 return(springGlue); 31 } 32 33 /** 34 * @return the picManFacade 35 */ 36 public PicManFacade getPicMan() { 37 return SpringGlue.picMan; 38 } 39 40 /** 41 * @param picManFacade the picManFacade to set 42 */ 43 public void setPicMan(PicManFacade picMan) { 44 SpringGlue.picMan = picMan; 45 } 46 47 48 49 }