Skip navigation links 
 
oracle.jdeveloper.deploy.shell
Class JavaDeployment
java.lang.Object
  
oracle.jdeveloper.deploy.shell.ShellAdapter
      
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.
 
 
 
 
  
 
  
 
 
| 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 | 
 
 
JavaDeployment
protected JavaDeployment(DeployShell shell)
JavaDeployment
protected JavaDeployment(Context context)
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.
 
 
Skip navigation links 
 
Copyright © 1997, 2013, Oracle. All rights reserved.