public abstract class Deployment
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Deployment()
Instantiated by JDeveloper.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Profile> |
createDeploymentProfile(DataContainer container,
java.lang.String profileName,
java.lang.Class<T> profileClass)
Deprecated.
|
static Profile |
createDeploymentProfile(HashStructure hash,
DataContainer container)
Deprecated.
|
abstract void |
deploy(Context context)
Deploy a context using the default command.
|
abstract void |
deploy(Context context,
java.lang.Object command)
Deploy a context using a specific command.
|
abstract Runnable |
deployAsync(Context context)
Deploy a context asynchronously.
|
abstract Runnable |
deployAsync(Context context,
java.lang.Object command)
Deploy a context asynchronously using a specific command.
|
static DependableFactory |
getDependableFactory()
Deprecated.
Use
DependableFactory instead. |
<T extends DeploymentOptions> |
getDeploymentOptions(java.lang.Class<T> optionsClass)
Returns the current DeploymentOptions object used to
configure environment-level options for deployment.
|
java.net.URL |
getDeployOutputDir(java.net.URL projectURL)
Returns the default deployment output directory as a URL, assuming
a project-level deployment profile.
|
java.net.URL |
getDeployOutputDir(java.net.URL containerURL,
java.lang.Class<? extends DataContainer> profileContainerClass)
Returns the default deployment output directory as an URL.
|
abstract ProfileElementInfo |
getGalleryElement(java.lang.String profileId) |
abstract ProfileElementInfo[] |
getGalleryElements() |
abstract ProfileElementInfo[] |
getGalleryElements(java.lang.Class<? extends Profile> profileClass,
boolean subTypes) |
static Deployment |
getInstance() |
static java.util.logging.Logger |
getLogger() |
LogPage |
getLogPage()
Returns the
LogPage used for deployment messages. |
java.io.PrintStream |
getLogPrintStream()
Deprecated.
Use getLogger() instead.
|
static java.io.PrintWriter |
getLogPrintWriter()
Deprecated.
Use getLogger() instead.
|
static java.util.Map |
getProjectProfiles(Project project)
Deprecated.
Use DeploymentProfiles.getProfiles() instead.
|
static java.util.Map |
getWorkspaceProfiles(Workspace workspace)
Deprecated.
|
abstract Profile |
invokeNewDeploymentProfileWizard(Context context,
ProfileType type)
Invokes the ProfileWizard to let user create and persist a profile.
|
void |
maybeShowLogPage() |
public abstract ProfileElementInfo[] getGalleryElements()
public abstract ProfileElementInfo[] getGalleryElements(java.lang.Class<? extends Profile> profileClass, boolean subTypes)
public abstract ProfileElementInfo getGalleryElement(java.lang.String profileId)
public static Deployment getInstance()
public abstract void deploy(Context context) throws DeployException
context
- the element(s) that need to be deployedDeployException
public abstract void deploy(Context context, java.lang.Object command) throws DeployException
context
- contains the element(s) that need to be deployed.command
- determines the specific deployment action.DeployException
public abstract Runnable deployAsync(Context context) throws DeployException
context
- indicates the element(s) that need to be deployedDeployException
public abstract Runnable deployAsync(Context context, java.lang.Object command) throws DeployException
context
- indicates the element(s) that need to be deployedcommand
- DeployException
public abstract Profile invokeNewDeploymentProfileWizard(Context context, ProfileType type)
context
- the Context in which to create.type
- the ProfileType to create. Pass null to allow all profiles.public <T extends DeploymentOptions> T getDeploymentOptions(java.lang.Class<T> optionsClass)
public java.net.URL getDeployOutputDir(java.net.URL projectURL)
public java.net.URL getDeployOutputDir(java.net.URL containerURL, java.lang.Class<? extends DataContainer> profileContainerClass)
The containerURL is used if the user specifies a directory name that is relative to the project or application directory. This is the default setting and the subdirectory in the project or application where deployed output goes by default is named "deploy".
The profileContainerClass determines whether the project-level or application-level deployment output preferences are used. It should be the class oracle.ide.model.Workspace or oracle.ide.model.Project, depending on the level at which the deployment profile is being created.
If the user specifies an absolute directory for the deployment output directory, then that directory is returned directly and the containerURL parameter is not used.
public void maybeShowLogPage()
@Deprecated public static java.io.PrintWriter getLogPrintWriter()
PrintWriter
that is connected to the deployment
log page. Any output sent to the PrintWriter
will be sent
to the deployment log page.public static java.util.logging.Logger getLogger()
@Deprecated public java.io.PrintStream getLogPrintStream()
PrintWriter
that is connected to the
deployment log page. Any output sent to the PrintWriter
will be sent to the deployment log page.@Deprecated public static java.util.Map getProjectProfiles(Project project)
Profile
contained in the given project.@Deprecated public static java.util.Map getWorkspaceProfiles(Workspace workspace)
Profile
contained in the given Application workspace.@Deprecated public static <T extends Profile> T createDeploymentProfile(DataContainer container, java.lang.String profileName, java.lang.Class<T> profileClass)
Profile
of the specified name and type and associates
it with a DataContainer.container
- the Project or Workspace with which to associate the Profile. A Profile
can only be interpreted in the context of its associated Container.profileName
- a name for the Profile. The name may be used as a prefix or suffix
for default property values in the Profile.profileClass
- the type of Profile to create.@Deprecated public static Profile createDeploymentProfile(HashStructure hash, DataContainer container) throws java.lang.InstantiationException
hash
- container
- java.lang.InstantiationException
@Deprecated public static DependableFactory getDependableFactory()
DependableFactory
instead.