01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.styling;
17:
18: import org.geotools.factory.CommonFactoryFinder;
19: import org.geotools.factory.FactoryConfigurationError;
20: import org.geotools.factory.GeoTools;
21:
22: /**
23: *
24: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/styling/StyleFactoryFinder.java $
25: *
26: * @deprecated Replaced by {@link org.geotools.factory.CommonFactoryFinder#getStyleFactory}.
27: */
28: public class StyleFactoryFinder {
29: private static StyleFactory factory = null;
30:
31: /**
32: * Create an instance of the factory.
33: *
34: * @return An instance of the Factory, or null if the Factory could not be
35: * created.
36: *
37: * @throws FactoryConfigurationError DOCUMENT ME!
38: */
39: public static StyleFactory createStyleFactory()
40: throws FactoryConfigurationError {
41: if (factory == null) {
42: factory = CommonFactoryFinder.getStyleFactory(GeoTools
43: .getDefaultHints());
44: }
45: return factory;
46: }
47: }
|