Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / service / AbstractMultiServiceImplManager.java @ 1739

History | View | Annotate | Download (1.85 KB)

1 802 cordinyana
/**
2
 * gvSIG. Desktop Geographic Information System.
3 99 cordinyana
 *
4 802 cordinyana
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6 99 cordinyana
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10 802 cordinyana
 *
11 99 cordinyana
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15 802 cordinyana
 *
16 99 cordinyana
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18 802 cordinyana
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 99 cordinyana
 * MA  02110-1301, USA.
20 802 cordinyana
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23 99 cordinyana
 */
24
/*
25
 * AUTHORS (In addition to CIT):
26
 * 2009 {}  {{Task}}
27
 */
28
package org.gvsig.tools.service;
29
30
import org.gvsig.tools.dynobject.DynObject;
31
import org.gvsig.tools.service.spi.ServiceManager;
32
33
/**
34
 * Base {@link Manager} implementation for managers which depend on the
35
 * registration of multiple service implementations.
36
 *
37
 * @author 2009- C?sar Ordi?ana - gvSIG team
38
 */
39
public abstract class AbstractMultiServiceImplManager implements Manager {
40
41
        private final ServiceManager serviceManager;
42
43
        public AbstractMultiServiceImplManager(ServiceManager serviceManager) {
44
                this.serviceManager = serviceManager;
45
        }
46
47
        public DynObject createServiceParameters(String serviceName)
48
                        throws ServiceException {
49
                return getServiceManager().createServiceParameters(serviceName);
50
        }
51
52 280 cmartin
        /**
53
         * Returns the service Manager
54
         *
55
         * @return the {@link ServiceManager}
56
         */
57 99 cordinyana
        public ServiceManager getServiceManager() {
58
                return serviceManager;
59
        }
60
61
}