Revision 41312 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/PluginsManager.java

View differences:

PluginsManager.java
189 189
     * This method allows plugins register task to do before initializacion of
190 190
     * all gvSIG plugins.
191 191
     *
192
     * @param task
193
     * @param in_event_thread
194
     * @param priority
192
     * Task with higher priority value are executed after.
193
     * 
194
     * @param name of the task
195
     * @param task runnable with the code of the task
196
     * @param in_event_thread, true if the task shoul run in the AWT event thread.
197
     * @param priority of the task.
195 198
     */
196
    public void addOnStartupTask(String name, Runnable task, boolean in_event_thread, int priority);
199
    public void addStartupTask(String name, Runnable task, boolean in_event_thread, int priority);
197 200

  
198
    public void addOnShutdownTask(String name, Runnable task, boolean in_event_thread, int priority);
201
    /**
202
     * This method allows plugins register task to do after close the application.
203
     *
204
     * Task with higher priority value are executed after.
205
     * 
206
     * @param name of the task
207
     * @param task runnable with the code of the task
208
     * @param in_event_thread, true if the task shoul run in the AWT event thread.
209
     * @param priority of the task.
210
     */
211
    public void addShutdownTask(String name, Runnable task, boolean in_event_thread, int priority);
199 212

  
200 213
    /**
201
     * This method executes registered to run before the initialization of
214
     * This method executes registered task to run before the initialization of
202 215
     * all plugins.
203 216
     * The tasks are sorted according to the priority and executed in a separated
204 217
     * thread.
205 218
     *
206 219
     */
207
    public void executeOnStartupTasks();
220
    public void executeStartupTasks();
208 221

  
209
    public void executeOnShutdownTasks();
222
    /**
223
     * This method executes registered task to run after the close of the application.
224
     * The tasks are sorted according to the priority and executed in a separated
225
     * thread.
226
     *
227
     */
228
    public void executeShutdownTasks();
210 229

  
211 230
}

Also available in: Unified diff