Extension SDK

oracle.jdeveloper.runner
Class Oc4jStarterFactory

java.lang.Object
  |
  +--oracle.jdeveloper.runner.Oc4jStarterFactory
All Implemented Interfaces:
JStarterFactory, StarterFactory

public class Oc4jStarterFactory
extends java.lang.Object
implements JStarterFactory

This class implements run/debug support for embedded OC4J. The run/debug actions are triggered from EJB and Web deployment profiles. The starter first deploys the EJB/Web deployment profile to an EAR file and makes appropriate changes to the server.xml and default-web-site.xml files used to configure OC4J. A local set of these OC4J config files is kept in the JDev user home directory, so that changes made to the config files in the course of running or debugging is isolated to the user's home directory and does not pollute the actual server installation that is being used for running/debugging.


Constructor Summary
Oc4jStarterFactory()
           
 
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 data)
          Creates a starter for the specified RunProcess.
 java.lang.String getName()
          Returns a String that identifies this StarterFactory.
protected  boolean isNodeJspHtmlEtc(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Oc4jStarterFactory

public Oc4jStarterFactory()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: StarterFactory
Returns a String that identifies this StarterFactory.

Specified by:
getName in interface StarterFactory
Following copied from interface: oracle.ide.runner.StarterFactory
Returns:
a String that identifies this StarterFactory

canStart

public java.lang.Object canStart(RunProcess runProcess,
                                 Node node,
                                 java.util.List errors)
Description copied from interface: StarterFactory
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 StarterFactory.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.

Specified by:
canStart in interface StarterFactory
Following copied from interface: oracle.ide.runner.StarterFactory
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

public Starter createStarter(RunProcess runProcess,
                             Node node,
                             java.lang.Object data)
Description copied from interface: StarterFactory
Creates a starter for the specified RunProcess.

Specified by:
createStarter in interface StarterFactory
Following copied from interface: oracle.ide.runner.StarterFactory
Parameters:
runProcess - the RunProcess to start
o - the non-null Object returned previously from the canStart method.
Returns:
a starter for the specified RunProcess

isNodeJspHtmlEtc

protected boolean isNodeJspHtmlEtc(Node node)

Extension SDK