Revision 281 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.spi/src/main/java/org/gvsig/tools/swing/spi/AbstractSwingServiceFactory.java

View differences:

AbstractSwingServiceFactory.java
38 38
import org.gvsig.tools.service.spi.AbstractServiceFactory;
39 39

  
40 40
/**
41
 * @author <a href="mailto:reinhold@uji.es">cmartin</a>
42 41
 * 
42
 * The Factory asociated to the swing Tools Service.
43
 * 
44
 * @author 2010 - <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG Team
45
 * @author 2010 - <a href="mailto:reinhold@uji.es">Cristian Mart?n&nbsp;</a> -
46
 *         gvSIG Team
47
 * @version $Id$
48
 * 
43 49
 */
44 50
public abstract class AbstractSwingServiceFactory extends
45 51
    AbstractServiceFactory {
......
47 53
    private DynClass dynClassParams;
48 54
    private DynObjectSwingServiceManager manager;
49 55

  
50
    /*
51
     * (non-Javadoc)
56
    /**
52 57
     * 
53
     * @see
58
     * Creates and returns a {@link DynClass} object based on its parameters.
54 59
     * 
55
     * org.gvsig.tools.service.spi.AbstractServiceFactory#createParametersDynClass
56
     * ()
60
     * @return
61
     *         the created {@link DynClass}.
57 62
     */
58 63
    protected DynClass getDynClassParams() {
59 64

  
......
65 70
    }
66 71

  
67 72
    /**
73
     * Returns the current Tools swing service manager.
74
     * 
68 75
     * @return
76
     *         the {@link DynObjectSwingServiceManager}.
69 77
     */
78
    protected DynObjectSwingServiceManager getServiceManager() {
79
        if (manager == null)
80
            manager = ToolsSwingServiceLocator.getServiceManager();
81
        return manager;
70 82

  
83
    }
84

  
85
    /**
86
     * 
87
     * Returns a brief description of this Factory.
88
     * 
89
     * @return
90
     *         the decription String.
91
     */
92

  
71 93
    public abstract String getFactoryDescription();
72 94

  
73 95
    /**
96
     * 
97
     * Returns the factory name.
98
     * 
74 99
     * @return
100
     *         the factory name String.
75 101
     */
76 102
    public abstract String getFactoryName();
77 103

  
78 104
    /**
105
     * 
106
     * Returns the factory subType.
107
     * 
79 108
     * @return
109
     *         the factory subType String.
80 110
     */
81 111
    public abstract String getFactorySubType();
82 112

  
83 113
    /**
114
     * 
115
     * Returns the factory type
116
     * 
84 117
     * @return
118
     *         the factory type value. It can be null.
85 119
     */
86 120
    public abstract Integer getFactoryType();
87 121

  
88
    /**
89
     * @return
90
     */
91
    protected DynObjectSwingServiceManager getServiceManager() {
92
        if (manager == null)
93
            manager = ToolsSwingServiceLocator.getServiceManager();
94
        return manager;
95

  
96
    }
97 122
}

Also available in: Unified diff