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

E13403-04

oracle.jdeveloper.deploy.jar
Class ArchiveProfile

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.deploy.dt.DeployElement
          extended by oracle.jdeveloper.deploy.dt.Profile
              extended by oracle.jdeveloper.deploy.jar.ArchiveProfile
All Implemented Interfaces:
Displayable, Element, SubDirtyable, Subject, Dirtyable, Copyable, oracle.jdeveloper.deploy.common.Interdependency, Deployable, JarPackaging, LinkedDirtyable
Direct Known Subclasses:
AppClientProfile, J2eeProfile, LibraryArchiveProfile, TaglibProfile

public class ArchiveProfile
extends Profile
implements Copyable, JarPackaging

Data model for the JAR (simple archive) deployment profile.


Field Summary
static java.lang.String ACTION_DEPLOY_TO_JAR_FILE
           
static java.lang.String ACTION_PREVIEW
           
static java.lang.String ACTION_SETTINGS_DIALOG
           
 
Fields inherited from class oracle.jdeveloper.deploy.dt.Profile
_dataContainer, _dependableContainer, PROFILE_CLASS_NAME, PROFILE_DEPENDENCIES, PROFILE_NAME
 
Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash
 
Constructor Summary
ArchiveProfile()
           
ArchiveProfile(HashStructure hash)
           
 
Method Summary
 void addFileGroup(oracle.jdeveloper.deploy.common.FileGroup fileGroup)
          Adds the specified FileGroup to this archive profile.
 boolean canPackage(Element element)
          This indicates if a profile has the ability to package the element within it's own module.
 oracle.jdeveloper.deploy.common.LibraryFileGroup findLibraryFileGroup(java.lang.String internalName)
          Returns the first LibraryFileGroup with the specified internal name.
protected  java.util.List<oracle.jdeveloper.deploy.common.LibraryFileGroup> findLibraryFileGroups()
           
 oracle.jdeveloper.deploy.common.PackagingFileGroup findPackagingFileGroup(java.lang.String internalName)
          Returns the first PackagingFileGroup with the specified internal name.
 oracle.jdeveloper.deploy.common.ProjectFileGroup findProjectFileGroup(java.lang.String internalName)
          Returns the first ProjectFileGroup with the specified internal name.
 ArchiveOptions getArchiveOptions()
          Returns a structure describing the JAR options that should be applied when building the output JAR.
 oracle.jdeveloper.deploy.common.FileGroups getFileGroups()
          Returns the FileGroups that represents the packaging instructions the user has specified in the deployment profile.
 java.net.URL getJarURL()
          Returns the URL that will be added to the class path of a project that depends on this profile.
 oracle.jdeveloper.deploy.common.SelectedProjectFiles getSelectedProjectFiles()
          Deprecated. Use FileGroups instead; this method returns a disconnected SelectedProjectFiles object (i.e. changing the object has no effect on profile behavior).
protected  void initArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass)
           
 boolean isClasspathJar()
          Returns true if the deployed output of this profile can be used as a JAR file on a classpath.
static ArchiveProfile newDefaultArchiveProfile()
           
static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends ArchiveProfile> prototypeClass)
          Returns an instance of a class that extends ArchiveProfile because it uses the prototype class passed in to do the construction work.
static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass, java.lang.Class<? extends ArchiveProfile> prototypeClass)
           
 boolean resolvesLibrary(oracle.jdevimpl.deploy.common.DependentLibrary library)
          This method indicates whether this profile resolves the given library.
 void selectLibraryForDeployment(java.lang.Object id)
          Selects the specified library for deployment by searching for a LibraryFileGroup with the default internal id and adding the specified library to its list.
 void setArchiveOptions(ArchiveOptions archiveOptions)
           
 void setFileGroups(oracle.jdeveloper.deploy.common.FileGroups fileGroups)
           
 void setJarURL(java.net.URL jarURL)
           
 
Methods inherited from class oracle.jdeveloper.deploy.dt.Profile
addDependency, addDependency, addDependency, copyTo, copyToImpl, equals, equalsImpl, getDataContainer, getDefaultLibraryFileGroupName, getDefaultLibraryFileGroupTargetWithinJar, getDependencies, getHashStructure, getLibraryDependencies, getName, getParentProfileName, getProfileClass, getProfileNameFromRef, getShortLabel, getUnSelectedLibraryDependencies, isContainedProfile, migrate, removeDependency, removeDependency, resolveProfileDependencies, setContainedProfile, setDataContainer, setLibraryDependencies, setName, setProfileClass, setUnSelectedLibraryDependencies
 
Methods inherited from class oracle.jdeveloper.deploy.dt.DeployElement
attach, detach, getAttributes, getChildren, getData, getIcon, getLongLabel, getToolTipText, isDirty, linkContainingDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyables, markDirty, mayHaveChildren, notifyObservers, setOwner, toString, unlinkContainingDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyables
 
Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyToImpl, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.javatools.util.Copyable
copyTo
 
Methods inherited from interface oracle.jdeveloper.deploy.common.Interdependency
addDependency, getDependencies, removeDependency
 

Field Detail

ACTION_DEPLOY_TO_JAR_FILE

public static final java.lang.String ACTION_DEPLOY_TO_JAR_FILE
See Also:
Constant Field Values

ACTION_PREVIEW

public static final java.lang.String ACTION_PREVIEW
See Also:
Constant Field Values

ACTION_SETTINGS_DIALOG

public static final java.lang.String ACTION_SETTINGS_DIALOG
See Also:
Constant Field Values
Constructor Detail

ArchiveProfile

public ArchiveProfile()

ArchiveProfile

public ArchiveProfile(HashStructure hash)
Method Detail

newDefaultArchiveProfile

public static ArchiveProfile newDefaultArchiveProfile()
Returns:
An actual ArchiveProfile instance fully defaulted

newDefaultArchiveProfile

public static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends ArchiveProfile> prototypeClass)
Returns an instance of a class that extends ArchiveProfile because it uses the prototype class passed in to do the construction work.

Parameters:
prototypeClass - The class to get the instance of, which can null to get an instance of ArchiveProfile itself.
Returns:
the initialized instance of the prototypeClass

newDefaultArchiveProfile

public static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass,
                                                      java.lang.Class<? extends ArchiveProfile> prototypeClass)

initArchiveProfile

protected void initArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass)

getJarURL

public java.net.URL getJarURL()
Description copied from interface: JarPackaging
Returns the URL that will be added to the class path of a project that depends on this profile.

Specified by:
getJarURL in interface JarPackaging

setJarURL

public void setJarURL(java.net.URL jarURL)

getArchiveOptions

public ArchiveOptions getArchiveOptions()
Description copied from interface: JarPackaging
Returns a structure describing the JAR options that should be applied when building the output JAR.

Specified by:
getArchiveOptions in interface JarPackaging

setArchiveOptions

public void setArchiveOptions(ArchiveOptions archiveOptions)

getFileGroups

public oracle.jdeveloper.deploy.common.FileGroups getFileGroups()
Description copied from interface: JarPackaging
Returns the FileGroups that represents the packaging instructions the user has specified in the deployment profile.

Specified by:
getFileGroups in interface JarPackaging

setFileGroups

public void setFileGroups(oracle.jdeveloper.deploy.common.FileGroups fileGroups)

isClasspathJar

public boolean isClasspathJar()
Returns true if the deployed output of this profile can be used as a JAR file on a classpath. Specialized JARs like WAR and EAR files are examples of JAR files that cannot be used directly on a classpath.


addFileGroup

public void addFileGroup(oracle.jdeveloper.deploy.common.FileGroup fileGroup)
Adds the specified FileGroup to this archive profile.


findPackagingFileGroup

public oracle.jdeveloper.deploy.common.PackagingFileGroup findPackagingFileGroup(java.lang.String internalName)
Returns the first PackagingFileGroup with the specified internal name. If the specified name is null or there is no matching FileGroup, this method returns null.


findProjectFileGroup

public oracle.jdeveloper.deploy.common.ProjectFileGroup findProjectFileGroup(java.lang.String internalName)
Returns the first ProjectFileGroup with the specified internal name. If the specified name is null or there is no matching FileGroup, this method returns null.


findLibraryFileGroup

public oracle.jdeveloper.deploy.common.LibraryFileGroup findLibraryFileGroup(java.lang.String internalName)
Returns the first LibraryFileGroup with the specified internal name. If the specified name is null or there is no matching FileGroup, this method returns null.


selectLibraryForDeployment

public void selectLibraryForDeployment(java.lang.Object id)
Selects the specified library for deployment by searching for a LibraryFileGroup with the default internal id and adding the specified library to its list. If there is no LibraryFileGroup in the deployment profile with the default internal id, then this method has no effect.


findLibraryFileGroups

protected java.util.List<oracle.jdeveloper.deploy.common.LibraryFileGroup> findLibraryFileGroups()

resolvesLibrary

public boolean resolvesLibrary(oracle.jdevimpl.deploy.common.DependentLibrary library)
This method indicates whether this profile resolves the given library. Profiles typically resolve libraries by including them in their library filegroups although different profile types could have various implementation.

Overrides:
resolvesLibrary in class Profile
Parameters:
library - The library to be evaluated.
Returns:
true if the library is resolved by this profile, false otherwise.

canPackage

public boolean canPackage(Element element)
This indicates if a profile has the ability to package the element within it's own module. For example, an EarProfile can package a WarProfile but a WarProfile cannot package another War Profile. This method will be overridden in the WarProfile and EarProfile at minimum. This method is used by the DependentLibrary resolvedBy criteria.


getSelectedProjectFiles

public final oracle.jdeveloper.deploy.common.SelectedProjectFiles getSelectedProjectFiles()
                                                                                   throws TransientMarker
Deprecated. Use FileGroups instead; this method returns a disconnected SelectedProjectFiles object (i.e. changing the object has no effect on profile behavior).

Throws:
TransientMarker

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

E13403-04

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