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.locator;
12
13 import it.imolinfo.jbi4cics.service.ServiceContext;
14
15 /**
16 * @author raffaele
17 *
18 */
19 public class DummyLocator implements ServiceLocator {
20
21 /**
22 * void constructor.
23 */
24 public DummyLocator(){
25 super();
26 }
27
28 /* (non-Javadoc)
29 * @see it.imolinfo.jbi4cics.locator.ServiceLocator#locateService(it.imolinfo.jbi4cics.service.ServiceContext)
30 */
31 public ServiceLocation locateService(ServiceContext serviceContext) {
32 return new ServiceLocation(){
33 public String getLocationName(){
34 return "Dummy";
35 }
36 public int getConnectionType(){
37 return ServiceLocation.DUMMY;
38 }
39 };
40 }
41
42
43 }