Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.ide.runner
Interface StarterFactory

All Known Subinterfaces:
JStarterFactory
All Known Implementing Classes:
AbstractStarterFactory

public interface StarterFactory

An interface that provides a factory for starting a process.


Method Summary
 java.lang.Object canStart(RunProcess runProcess, Node node, java.util.List errors)
          Tests whether this StarterFactory knows how to start the specified node.
 Starter createStarter(RunProcess runProcess, Node node, java.lang.Object o)
          Creates a starter for the specified RunProcess.
 java.lang.String getName()
          Returns a String that identifies this StarterFactory.
 

Method Detail

getName

java.lang.String getName()
Returns a String that identifies this StarterFactory.

The name returned may be presented to the user.

Returns:
a String that identifies this StarterFactory

canStart

java.lang.Object canStart(RunProcess runProcess,
                          Node node,
                          java.util.List errors)
Tests whether this StarterFactory knows how to start the specified node.

If this StarterFactory knows how to start the specified node, it should return a non-null Object. The non-null Object will be passed to the createStarter(oracle.ide.runner.RunProcess, oracle.ide.model.Node, java.lang.Object) method.

If this StarterFactory does not know how to start the specified node, it should add an appropriate error message String to the errors List and return null.

Parameters:
runProcess - the RunProcess
node - the node that should be started
errors - the errors list
Returns:
a non-null Object if this StarterFactory can start the specified RunProcess

createStarter

Starter createStarter(RunProcess runProcess,
                      Node node,
                      java.lang.Object o)
Creates a starter for the specified RunProcess.

Parameters:
runProcess - the RunProcess to start
o - the non-null Object returned previously from the canStart method.
Returns:
a starter for the specified RunProcess

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.