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

E13403-08

oracle.jdeveloper.deploy.shell
Class JavaDeployment

java.lang.Object
  extended by oracle.jdeveloper.deploy.shell.ShellAdapter
      extended by oracle.jdeveloper.deploy.shell.JavaDeployment
All Implemented Interfaces:
JavaConstants, ShellConstants
Direct Known Subclasses:
JeeDeployment

public class JavaDeployment
extends ShellAdapter
implements JavaConstants

An adapter for a DeployShell used for JSE deployments. Provides type-safe access to properties in the shell. This adapter can be used on a context, and then later on, on a shell that was created from that context. Queries on the shell are satisfied by the context.

For example, deployment may be initiated with this code:

 Context context = Context.newIdeContext();
 JavaDeployment.getInstance(context).setPlatform( myPlatform );
 DeploymentManager.deploy(context, DEFAULT_SEQUENCE);
 
Within a Deployer, the Platform object set in the Context may be retreived in two ways.

1) Directly from the Context:

 JavaDeployment jd = JavaDeployment.getInstance(shell.getContext());
 Platform platform = jd.getPlatform();
 
<
2) Or from the DeployShell, with the Context as a backup:

 JavaDeployment jd = JavaDeployment.getInstance(shell);
 Platform p = jd.getPlatform();
 

The second method will find Platform in the current and all parent shells before searching the Context.


Field Summary
 
Fields inherited from class oracle.jdeveloper.deploy.shell.ShellAdapter
context_, shell_
 
Fields inherited from interface oracle.jdeveloper.deploy.shell.JavaConstants
KEY_IS_HEADLESS, KEY_PLATFORM, KEY_PRINT_TIME_MESSAGES
 
Fields inherited from interface oracle.jdeveloper.deploy.shell.ShellConstants
KEY_CONTEXT, KEY_DEPLOY_ELEMENT
 
Constructor Summary
protected JavaDeployment(Context context)
           
protected JavaDeployment(DeployShell shell)
           
 
Method Summary
static JavaDeployment getInstance(Context context)
           
static JavaDeployment getInstance(DeployShell shell)
           
 oracle.jdeveloper.deploy.meta.Platform getPlatform()
           
 boolean getPrintTimeMessages()
           
 JavaDeployment getRoot()
           
 boolean isHeadlessDeployment()
           
protected  JavaDeployment newAdapter(DeployShell shell)
           
 JavaDeployment newChildShell()
           
 void setPlatform(oracle.jdeveloper.deploy.meta.Platform platform)
           
 void setPrintTimeMessages(boolean value)
           
 
Methods inherited from class oracle.jdeveloper.deploy.shell.ShellAdapter
find, findFlag, get, getContext, getDeployElement, getDeployException, getLogger, getProfile, getShell, isDeploying, isProfileBasedDeployment, put, setDeployException, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDeployment

protected JavaDeployment(DeployShell shell)

JavaDeployment

protected JavaDeployment(Context context)
Method Detail

getInstance

public static JavaDeployment getInstance(DeployShell shell)

getInstance

public static JavaDeployment getInstance(Context context)

newAdapter

protected JavaDeployment newAdapter(DeployShell shell)
Specified by:
newAdapter in class ShellAdapter

getRoot

public JavaDeployment getRoot()
Overrides:
getRoot in class ShellAdapter

newChildShell

public JavaDeployment newChildShell()
Overrides:
newChildShell in class ShellAdapter

getPlatform

public oracle.jdeveloper.deploy.meta.Platform getPlatform()

setPlatform

public void setPlatform(oracle.jdeveloper.deploy.meta.Platform platform)

isHeadlessDeployment

public boolean isHeadlessDeployment()

setPrintTimeMessages

public void setPrintTimeMessages(boolean value)

getPrintTimeMessages

public boolean getPrintTimeMessages()
Returns:
boolean false, only if it is explicitly set.

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

E13403-08

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