Extension SDK 10.1.2


oracle.jdeveloper.runner
Class EmbeddedServerAdmin

java.lang.Object
  extended byoracle.jdeveloper.runner.EmbeddedServerAdmin


public abstract class EmbeddedServerAdmin
extends java.lang.Object

EmbeddedServerAdmin instances are created by JDeveloper for EmbeddedServerExtension implementations to provide administrative control for the embedded server.


Constructor Summary
protected EmbeddedServerAdmin(oracle.jdevimpl.runner.oc4j.EmbeddedServerKey key)
Only JDeveloper is allowed to create instances of EmbeddedServerAdmin.

Method Summary
protected static java.util.List findExtensions(Node node)
This method always returns a non-null List.
abstract java.io.PrintWriter getPrintWriter()
Returns a PrintWriter that is connected to the JDeveloper log page for the associated embedded server instance.
abstract Context getTargetContext()
Returns the Context in which the embedded server is running.
abstract Node getTargetNode()
Returns the Node that will be run in the embedded server.
static void register(EmbeddedServerExtension ext, java.lang.Class c)
Registers the specified EmbeddedServerExtension to be associated with the specified Class.
static void unregister(EmbeddedServerExtension ext, java.lang.Class c)
Unregisters the specified EmbeddedServerExtension that is associated with the specified Class.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

EmbeddedServerAdmin

protected EmbeddedServerAdmin(oracle.jdevimpl.runner.oc4j.EmbeddedServerKey key)
Only JDeveloper is allowed to create instances of EmbeddedServerAdmin.

Method Detail

register

public static void register(EmbeddedServerExtension ext,
                            java.lang.Class c)
Registers the specified EmbeddedServerExtension to be associated with the specified Class. Registration follows an exact-match style of semantics. The extension will only be involved if the running Node's class exactly matches the specified Class.

unregister

public static void unregister(EmbeddedServerExtension ext,
                              java.lang.Class c)
Unregisters the specified EmbeddedServerExtension that is associated with the specified Class. If no such extension is registered, this method has no effect.

getTargetContext

public abstract Context getTargetContext()
Returns the Context in which the embedded server is running. This includes Workspace and JProject context.

getTargetNode

public abstract Node getTargetNode()
Returns the Node that will be run in the embedded server.

getPrintWriter

public abstract java.io.PrintWriter getPrintWriter()
Returns a PrintWriter that is connected to the JDeveloper log page for the associated embedded server instance.

findExtensions

protected static java.util.List findExtensions(Node node)
This method always returns a non-null List.

Extension SDK


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