|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.deploy.DeployUtil
public final class DeployUtil
Bucket for miscellaneous methods that are in the process of being refactored or otherwise don't properly belong anywhere else yet.
Method Summary | ||
---|---|---|
static Dependable[] |
clearAllDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep)
|
|
static
|
clearDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep,
java.lang.Class<T> clazz)
|
|
static ArchiveEntry |
createArchiveEntry(oracle.jdeveloper.deploy.common.NodeDependable nodeDependable,
java.lang.String prefix)
Make an ArchiveEntry out of a NodeDependable. |
|
static ArchiveEntry |
createArchiveEntry(oracle.jdeveloper.deploy.common.ProfileDependable profileDependable,
java.lang.String prefix)
|
|
static java.net.URL[] |
findFast(Project project,
java.lang.String fileName,
java.lang.String extension)
Find a list of URLs matching a filename and extension in specific Project. |
|
static java.net.URL[] |
findFastXml(Project project,
java.lang.String rootElem,
java.lang.String nameSpace)
Find a list of URLs in project that match an XML root element and namespace. |
|
static Profile |
findProfileInElement(java.lang.String profileName,
Element parent)
|
|
static Profile |
findProfileInElement(java.net.URL profileURL,
Element parent)
|
|
static oracle.jdeveloper.deploy.common.NodeDependable[] |
getAllJarDependables(oracle.jdeveloper.deploy.common.Interdependency interdep)
Get all the Jar dependables starting from a Profile and branching out to all its ProfileDependants. |
|
static DataContainer |
getContainer(javax.swing.Action action,
Context context)
|
|
static oracle.jdeveloper.deploy.common.ProfileDependable[] |
getContainerProfileDependables(DataContainer container)
Return an unordered array of all Container to Profile dependencies. |
|
static java.net.URL |
getContainerURL(java.net.URL profileURL)
|
|
static
|
getDependables(oracle.jdeveloper.deploy.common.Interdependency interDep,
java.lang.Class<T> type)
Returns an unordered array of all dependencies of InterDep that implement or subclass a particular type. |
|
static
|
getDependablesList(oracle.jdeveloper.deploy.common.Interdependency interDep,
java.lang.Class<T> type)
|
|
static Element |
getDeployElement(DeployShell shell)
Returns the deploy element from a DeployShell. |
|
static DeploymentModule |
getDeploymentModule(DeployShell shell,
Profile profile)
Get the Deployment Module for the specified Profile |
|
static DeploymentOptions |
getDeploymentOptions(Context context)
Get Deployment Options from Context or the IDE. |
|
static java.net.URL |
getDeployPathURL(java.net.URL projectURL,
java.net.URL selectedURL)
Generates a deploy output URL based on the IDE Prferences setting and project location. |
|
static java.util.List |
getGalleryList()
The returned list is the actual list (not a copy) of GalleryElement objects used for the "Deployment" gallery folder. |
|
static oracle.jdeveloper.deploy.common.NodeDependable[] |
getJarDependables(oracle.jdeveloper.deploy.common.Interdependency profile)
Get the Jar Dependables of an Interdependency |
|
static java.util.jar.Manifest |
getManifestFromApplicationFile(java.io.File applicationFile)
Returns the Manifest from the Application File if present, null otherwise. |
|
static oracle.jdeveloper.deploy.meta.Platform |
getPlatform(Context context)
Deprecated. Use JavaDeployment.setPlatform() instead. |
|
static oracle.jdeveloper.deploy.meta.Platform |
getPlatform(DeployShell shell)
Deprecated. Use JavaDeployment.getPlatform() |
|
static Profile |
getProfile(Context context)
|
|
static Profile |
getProfile(DataContainer container,
java.lang.String profileName)
|
|
static Profile |
getProfile(DeployShell shell)
|
|
static Profile |
getProfile(java.net.URL profileURL)
|
|
static DataContainer |
getProfileDataContainer(Context context)
Deprecated. Use profile.getDataContainer() instead. |
|
static DataContainer |
getProfileDataContainer(DeployShell shell)
Deprecated. Use profile.getDataContainer() instead. |
|
static oracle.jdeveloper.deploy.common.ProfileDependable[] |
getProfileDependables(DataContainer container,
oracle.jdeveloper.deploy.common.Interdependency profile)
Returns an unordered array of all Container to Profiles and Profile to Dependable dependencies. |
|
static oracle.jdeveloper.deploy.common.ProfileDependable[] |
getProfileDependables(Profile profile,
java.lang.Class<? extends Profile> sourceClass)
Get all Profile Dependables that point to Profile of type sourceClass. |
|
static java.lang.String |
getProfileName(javax.swing.Action action)
|
|
static java.lang.String |
getProfileName(java.net.URL profileURL)
Deprecated. |
|
static java.net.URL |
getProfileURL(DataContainer container,
Profile profile)
|
|
static java.net.URL |
getProfileURL(java.net.URL containerURL,
Profile profile)
|
|
static java.lang.String |
getShortCommandKey(javax.swing.Action action)
|
|
static boolean |
isDependableExist(Dependable dependable)
Does a Dependant object still exist. |
|
static boolean |
isDirectoryLibrary(JLibrary lib)
|
|
static boolean |
isForceJarRewrite()
|
|
static void |
setContainerType(javax.swing.Action action,
DataContainer container)
|
|
static void |
setDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep,
Dependable[] dependables)
Utility method to set all the dependencies on an Interdependency. |
|
static
|
setDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep,
T[] dependables,
java.lang.Class<T> clazz)
Sets only the sub-set of Dependables that match a particular type. |
|
static void |
setDeploymentModule(DeployShell shell,
Profile profile,
DeploymentModule module)
Sets the DeploymentModule in the topmost DeployShell shell. |
|
static void |
setDeploymentOptions(Context context,
DeploymentOptions options)
|
|
static void |
setPlatform(Context context,
oracle.jdeveloper.deploy.meta.Platform platform)
Deprecated. Use JavaDeployment.setPlatform() |
|
static void |
setProfile(Context context,
Profile profile)
|
|
static void |
setProfile(Context context,
Profile profile,
DataContainer container)
|
|
static void |
setProfileDataContainer(javax.swing.Action action,
DataContainer container)
Deprecated. The DataContainer for the Profile is set within the profile and is immutable. |
|
static void |
setProfileDataContainer(Context context,
DataContainer container)
Deprecated. The DataContainer for the Profile is set within the profile and is immutable. |
|
static void |
setProfileName(javax.swing.Action action,
java.lang.String profileName)
|
|
static void |
setShortCommandKey(javax.swing.Action action,
java.lang.String shortCommandKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List getGalleryList()
public static java.net.URL getDeployPathURL(java.net.URL projectURL, java.net.URL selectedURL)
public static oracle.jdeveloper.deploy.common.ProfileDependable[] getProfileDependables(DataContainer container, oracle.jdeveloper.deploy.common.Interdependency profile)
container
- interDep
-
public static oracle.jdeveloper.deploy.common.ProfileDependable[] getContainerProfileDependables(DataContainer container)
container
-
public static <T extends Dependable> T[] getDependables(oracle.jdeveloper.deploy.common.Interdependency interDep, java.lang.Class<T> type)
interDep
- type
- the super class or interface that should be implemented.
public static <T extends Dependable> java.util.List<T> getDependablesList(oracle.jdeveloper.deploy.common.Interdependency interDep, java.lang.Class<T> type)
public static boolean isForceJarRewrite()
public static java.net.URL getProfileURL(DataContainer container, Profile profile)
public static java.net.URL getProfileURL(java.net.URL containerURL, Profile profile)
public static Profile findProfileInElement(java.net.URL profileURL, Element parent)
public static Profile findProfileInElement(java.lang.String profileName, Element parent)
public static Profile getProfile(java.net.URL profileURL)
public static Profile getProfile(DataContainer container, java.lang.String profileName)
public static void setProfile(Context context, Profile profile)
public static void setProfile(Context context, Profile profile, DataContainer container)
public static Profile getProfile(Context context)
public static java.lang.String getShortCommandKey(javax.swing.Action action)
public static void setShortCommandKey(javax.swing.Action action, java.lang.String shortCommandKey)
public static java.lang.String getProfileName(javax.swing.Action action)
public static void setProfileName(javax.swing.Action action, java.lang.String profileName)
public static void setContainerType(javax.swing.Action action, DataContainer container)
public static DataContainer getContainer(javax.swing.Action action, Context context)
public static Profile getProfile(DeployShell shell)
public static void setDeploymentModule(DeployShell shell, Profile profile, DeploymentModule module)
module
- public static DeploymentModule getDeploymentModule(DeployShell shell, Profile profile)
@Deprecated public static java.lang.String getProfileName(java.net.URL profileURL)
public static java.net.URL getContainerURL(java.net.URL profileURL)
@Deprecated public static void setProfileDataContainer(Context context, DataContainer container)
context
- container
- @Deprecated public static DataContainer getProfileDataContainer(Context context)
context
-
@Deprecated public static DataContainer getProfileDataContainer(DeployShell shell)
shell
-
@Deprecated public static void setProfileDataContainer(javax.swing.Action action, DataContainer container)
action
- container
- @Deprecated public static void setPlatform(Context context, oracle.jdeveloper.deploy.meta.Platform platform)
JavaDeployment.setPlatform()
context_
- @Deprecated public static oracle.jdeveloper.deploy.meta.Platform getPlatform(Context context)
JavaDeployment.setPlatform()
instead.
context
-
@Deprecated public static oracle.jdeveloper.deploy.meta.Platform getPlatform(DeployShell shell)
JavaDeployment.getPlatform()
shell
- public static oracle.jdeveloper.deploy.common.ProfileDependable[] getProfileDependables(Profile profile, java.lang.Class<? extends Profile> sourceClass)
sourceClass
-
public static ArchiveEntry createArchiveEntry(oracle.jdeveloper.deploy.common.NodeDependable nodeDependable, java.lang.String prefix)
nodeDependable
- prefix
- if supplied, prefix + filename = entryName.
public static ArchiveEntry createArchiveEntry(oracle.jdeveloper.deploy.common.ProfileDependable profileDependable, java.lang.String prefix)
profileDependable
- prefix
-
public static oracle.jdeveloper.deploy.common.NodeDependable[] getJarDependables(oracle.jdeveloper.deploy.common.Interdependency profile)
profile
-
public static oracle.jdeveloper.deploy.common.NodeDependable[] getAllJarDependables(oracle.jdeveloper.deploy.common.Interdependency interdep)
profile
-
public static boolean isDependableExist(Dependable dependable)
dependable
-
public static DeploymentOptions getDeploymentOptions(Context context)
public static void setDeploymentOptions(Context context, DeploymentOptions options)
public static <T extends Dependable> T[] clearDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep, java.lang.Class<T> clazz)
public static Dependable[] clearAllDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep)
public static void setDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep, Dependable[] dependables)
dependables
- public static <T extends Dependable> T[] setDependencies(oracle.jdeveloper.deploy.common.Interdependency interDep, T[] dependables, java.lang.Class<T> clazz)
interDep
- dependables
- the replacement set. All elements of this set should be of the same type.clazz
- the type of the Dependable to set
public static Element getDeployElement(DeployShell shell)
shell
-
public static java.net.URL[] findFast(Project project, java.lang.String fileName, java.lang.String extension)
project
- the project to search.fileName
- name of file to find. Can include the *(asterisk) as a wildcard.extension
- null to find all extensions. If specified, the extension should
start with a . (dot). The | (pipe) character may be used to separate multiple
extensions.
public static java.net.URL[] findFastXml(Project project, java.lang.String rootElem, java.lang.String nameSpace)
project
- the project to search in.rootElem
- XML root element, cannot be null.nameSpace
- namespace of rootElem. If null, searches for matches on just rootElem.
public static boolean isDirectoryLibrary(JLibrary lib)
public static java.util.jar.Manifest getManifestFromApplicationFile(java.io.File applicationFile)
applicationFile
- the applicationFile (typically EAR/WAR etc or application Directory).
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |