View Javadoc

1   /*******************************************************************************
2    *  Copyright (c) 2005, 2006 Imola Informatica.
3    *  All rights reserved. This program and the accompanying materials
4    *  are made available under the terms of the LGPL License v2.1
5    *  which accompanies this distribution, and is available at
6    *  http://www.gnu.org/licenses/lgpl.html
7    *******************************************************************************/
8   /**
9    * 
10   */
11  package it.imolinfo.jbi4cics.configuration;
12  
13  import it.imolinfo.jbi4cics.service.ServiceContext;
14  
15  /**
16   * @author raffaele
17   *
18   */
19  public class ConfigurationManager {
20  	
21  	private static ConfigurationManager theConfigurationManager;
22  	
23  	/**
24  	 * void constructor.
25  	 */
26  	  public ConfigurationManager(){
27  		  super();
28  	  }
29  	
30  	// implementazione vanilla di un singleton
31  	public static synchronized ConfigurationManager getConfigurationManager(){
32  		if (theConfigurationManager==null) {
33  			theConfigurationManager=new ConfigurationManager();
34  		}
35  		return theConfigurationManager;
36  	}
37  	
38  	public ServiceContext createServiceContext(String serviceName,Object input){
39  		return DummyServiceContextFactory.createServiceContext(serviceName,input);
40  	}
41  
42  }