Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.j2ee.descriptor.wl
Interface DeploymentPlanBean


public interface DeploymentPlanBean

An XML deployment-planType(@http://xmlns.oracle.com/weblogic/deployment-plan). This is a complex type.

Access limited to the following security roles:
Deployer

Method Summary
 VariableAssignmentBean assignVariable(VariableBean var, ModuleDescriptorBean desc, DescriptorBean bean, String prop)
          Create new variable assignment from existing variable.
 ModuleOverrideBean createModuleOverride()
           
 void destroyModuleOverride(ModuleOverrideBean moduleOverride)
           
 ModuleDescriptorBean findModuleDescriptor(String name, String uri)
          Get descriptor for module in plan.
 ModuleOverrideBean findModuleOverride(String name)
          Get descriptor overrides for any module in plan.
 VariableBean findOrCreateVariable(ModuleDescriptorBean desc, DescriptorBean bean, String prop)
           
 VariableBean findOrCreateVariable(ModuleDescriptorBean desc, DescriptorBean bean, String prop, boolean planBased)
           
 VariableBean findOrCreateVariable(ModuleDescriptorBean desc, DescriptorBean bean, String prop, boolean planBased, Object oldKeyValue)
           
 ModuleOverrideBean findRootModule()
          A plan can have at most one ModuleOverride that represents the root module of the application.
 VariableBean findVariable(ModuleDescriptorBean desc, DescriptorBean bean, String prop)
           
 VariableAssignmentBean findVariableAssignment(ModuleDescriptorBean desc, DescriptorBean bean, String prop)
           
 VariableAssignmentBean[] findVariableAssignments(VariableBean var)
           
 String getApplicationName()
          Gets the "application-name" element
 String getConfigRoot()
          Gets the "install-root" element
 String getDescription()
          Gets the "description" element
 ModuleOverrideBean[] getModuleOverrides()
          Gets array of all "module-override" elements
 VariableDefinitionBean getVariableDefinition()
          Gets the "variable-definition" element
 String getVersion()
          Gets the "version" element
 boolean hasVariable(ModuleDescriptorBean desc, DescriptorBean bean, String prop)
           
 boolean isGlobalVariables()
          Global variable names are of the form BeanName_[KeyValue_]PropertyName.
 boolean isRemovable(DescriptorBean bean)
           
 boolean rootModule(String moduleName)
           
 void setApplicationName(String applicationName)
          Sets the "application-name" element
 void setConfigRoot(String configRoot)
          Sets the "config-root" element
 void setDescription(String description)
          Sets the "description" element
 void setGlobalVariables(boolean global)
           
 void setVersion(String version)
          Sets the "version" element
 Object valueOf(VariableBean var)
           
 

Method Detail

getDescription

String getDescription()
Gets the "description" element


setDescription

void setDescription(String description)
Sets the "description" element

Parameters:
description -

getApplicationName

String getApplicationName()
Gets the "application-name" element


setApplicationName

void setApplicationName(String applicationName)
Sets the "application-name" element

Parameters:
applicationName -

getVersion

String getVersion()
Gets the "version" element


setVersion

void setVersion(String version)
Sets the "version" element

Parameters:
version -

getVariableDefinition

VariableDefinitionBean getVariableDefinition()
Gets the "variable-definition" element


getModuleOverrides

ModuleOverrideBean[] getModuleOverrides()
Gets array of all "module-override" elements


createModuleOverride

ModuleOverrideBean createModuleOverride()

destroyModuleOverride

void destroyModuleOverride(ModuleOverrideBean moduleOverride)

findModuleOverride

ModuleOverrideBean findModuleOverride(String name)
Get descriptor overrides for any module in plan.


findModuleDescriptor

ModuleDescriptorBean findModuleDescriptor(String name,
                                          String uri)
Get descriptor for module in plan.


getConfigRoot

String getConfigRoot()
Gets the "install-root" element


setConfigRoot

void setConfigRoot(String configRoot)
Sets the "config-root" element

Parameters:
configRoot -

rootModule

boolean rootModule(String moduleName)
Parameters:
moduleName -
Returns:
whether a module is the root module of the application.

hasVariable

boolean hasVariable(ModuleDescriptorBean desc,
                    DescriptorBean bean,
                    String prop)
                    throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
Returns:
indicates if a variable assignment exists for the property
Throws:
IllegalArgumentException

findVariable

VariableBean findVariable(ModuleDescriptorBean desc,
                          DescriptorBean bean,
                          String prop)
                          throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
Returns:
VariableBean associated with a descriptor property or null if none.
Throws:
IllegalArgumentException

findOrCreateVariable

VariableBean findOrCreateVariable(ModuleDescriptorBean desc,
                                  DescriptorBean bean,
                                  String prop,
                                  boolean planBased)
                                  throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
planBased -
Returns:
VariableBean associated with a descriptor property. Creates a variable assignment if necessary
Throws:
IllegalArgumentException - if the property is transient

findOrCreateVariable

VariableBean findOrCreateVariable(ModuleDescriptorBean desc,
                                  DescriptorBean bean,
                                  String prop)
                                  throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
Returns:
VariableBean associated with a descriptor property. Creates a variable assignment if necessary
Throws:
IllegalArgumentException - if the property is transient

findOrCreateVariable

VariableBean findOrCreateVariable(ModuleDescriptorBean desc,
                                  DescriptorBean bean,
                                  String prop,
                                  boolean planBased,
                                  Object oldKeyValue)
                                  throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
planBased -
oldKeyValue -
Returns:
VariableBean associated with a descriptor property. Creates a variable assignment if necessary
Throws:
IllegalArgumentException - if the property is transient

findVariableAssignments

VariableAssignmentBean[] findVariableAssignments(VariableBean var)
Parameters:
var -
Returns:
VariableAssignmentBean object using this variable

findVariableAssignment

VariableAssignmentBean findVariableAssignment(ModuleDescriptorBean desc,
                                              DescriptorBean bean,
                                              String prop)
                                              throws IllegalArgumentException
Parameters:
desc -
bean -
prop -
Returns:
VariableAssignmentBean associated with a descriptor property or null if none.
Throws:
IllegalArgumentException - if the desc is null

valueOf

Object valueOf(VariableBean var)
Parameters:
var -
Returns:
typed object representing variable's value.

assignVariable

VariableAssignmentBean assignVariable(VariableBean var,
                                      ModuleDescriptorBean desc,
                                      DescriptorBean bean,
                                      String prop)
Create new variable assignment from existing variable.

Parameters:
var -
desc -
bean -
prop -

isGlobalVariables

boolean isGlobalVariables()
Global variable names are of the form BeanName_[KeyValue_]PropertyName. If false then the name is appended with a unique number. Global variables are useful for most descriptors since this allows a single variable value to affect all like references to it.

Returns:
whether to use global variable naming.
Default Value:
false

setGlobalVariables

void setGlobalVariables(boolean global)

findRootModule

ModuleOverrideBean findRootModule()
A plan can have at most one ModuleOverride that represents the root module of the application.

Returns:
root ModuleOverrideBean or null if none found

isRemovable

boolean isRemovable(DescriptorBean bean)
                    throws IllegalArgumentException
Parameters:
bean -
Returns:
indicates if a descriptor bean can be removed from the plan
Throws:
IllegalArgumentException

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02