public class Profile extends DeployElement implements Interdependency, DependencyStorage
| Modifier and Type | Field and Description |
|---|---|
protected DataContainer |
_dataContainer |
static java.lang.String |
PROFILE_CLASS_NAME |
static java.lang.String |
PROFILE_NAME |
_hash| Constructor and Description |
|---|
Profile() |
Profile(HashStructure hash) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(Dependable dependable)
Adds a new Dependable.
|
void |
addDependency(Node node,
DataContainer container)
Deprecated.
Use
addDependency(Dependable) instead. |
void |
addDependency(Profile profile)
Deprecated.
Use
addDependency(Dependable) instead |
java.lang.Object |
copyTo(java.lang.Object object)
Copy support.
|
protected void |
copyToImpl(java.lang.Object object) |
boolean |
equals(java.lang.Object o)
Equals support.
|
protected boolean |
equalsImpl(Profile profile) |
DataContainer |
getDataContainer() |
java.util.Iterator<Dependable> |
getDependencies()
Get all Dependables.
|
HashStructure |
getHashStructure()
Returns the HashStructure this adapter is adapting.
|
java.lang.String |
getName() |
java.lang.String |
getParentProfileName()
Deprecated.
Profiles heirarchy not a part of base infrastructure. A composite
should be used if specific implementations require this.
|
static <T extends Profile> |
getProfileClass(HashStructure hash,
java.lang.ClassLoader loader)
Returns the Class for a Profile.
|
java.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user.
|
boolean |
isContainedProfile()
Deprecated.
|
void |
migrate(TraversableContext context)
Deprecated.
|
Dependable |
removeDependency(Dependable dependable)
Removes a Dependable from the list of the object's dependencies.
|
Dependable |
removeDependency(Profile profile)
Deprecated.
Use
removeDependency(Dependable) instead. |
void |
setContainedProfile(boolean containedProfile)
Deprecated.
Containment is not for the profile to track, hence should not be a property.
|
void |
setDataContainer(DataContainer dataContainer) |
void |
setName(java.lang.String name) |
static <T extends Profile> |
setProfileClass(Profile profile,
java.lang.Class<T> profileClass)
Set the type of Profile.
|
attach, detach, getAttributes, getChildren, getData, getIcon, getLongLabel, getToolTipText, isDirty, linkContainingDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyables, markDirty, mayHaveChildren, notifyObservers, setOwner, toString, unlinkContainingDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyablesaddStructureChangeListener, containsKey, copyToImpl, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEqualspublic static java.lang.String PROFILE_NAME
public static java.lang.String PROFILE_CLASS_NAME
protected DataContainer _dataContainer
public Profile()
public Profile(HashStructure hash)
public boolean equals(java.lang.Object o)
HashStructureAdapterHashStructureAdapter._hash, this base equals implementation should be
sufficient and not need to be overridden.equals in class HashStructureAdapterprotected final boolean equalsImpl(Profile profile)
public java.lang.String getName()
public void setName(java.lang.String name)
public static <T extends Profile> void setProfileClass(Profile profile, java.lang.Class<T> profileClass)
profileClass - public static <T extends Profile> java.lang.Class<T> getProfileClass(HashStructure hash, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundException
loader - the ClassLoader to use to load the Class. If null, the
context class loader will be usedjava.lang.ClassNotFoundException - if the class is not known or it cannot be loaded.public java.lang.Object copyTo(java.lang.Object object)
HashStructureAdaptercopyTo in class HashStructureAdapterprotected final void copyToImpl(java.lang.Object object)
public HashStructure getHashStructure()
HashStructureAdaptergetHashStructure in interface DependencyStoragegetHashStructure in class HashStructureAdapterpublic DataContainer getDataContainer()
public void setDataContainer(DataContainer dataContainer)
dataContainer - is the DataContainer associated with the Profile. This will either be an
instance of a Project or Workspace. The dataContainer is set at profile creation time in
Deployment.createDeploymentProfile and in DeploymentProfiles when read from disk.public java.util.Iterator<Dependable> getDependencies()
InterdependencygetDependencies in interface Interdependency@Deprecated public void addDependency(Profile profile)
addDependency(Dependable) insteadprofile - the profile object to be added as a dependency to this profile.
This object represents an object that this profile depends on for deployment.@Deprecated public Dependable removeDependency(Profile profile)
removeDependency(Dependable) instead.profile - @Deprecated public void addDependency(Node node, DataContainer container)
addDependency(Dependable) instead.node - the jarNode object to be added as a dependency to this profile.
This object represents an object that this profile depends on for deployment.public void addDependency(Dependable dependable)
InterdependencyaddDependency in interface Interdependencydependable - the dependable object to be added as a dependency to this profile.
This object represents an object that this profile depends on for deployment.public Dependable removeDependency(Dependable dependable)
InterdependencyremoveDependency in interface Interdependencydependable - removes the dependency of this profile on the specified dependable.public java.lang.String getShortLabel()
DisplayableString is considered
translatable and should therefore be placed in an appropriate
resource file. When possible, the returned label should be
reasonably short enough to show in the navigator or explorer
windows but long enough to clearly identify and distinguish the
Displayable.getShortLabel in interface DisplayablegetShortLabel in class DeployElementDisplayable
that can be shown to the user.@Deprecated public void setContainedProfile(boolean containedProfile)
@Deprecated public boolean isContainedProfile()
@Deprecated public java.lang.String getParentProfileName()
@Deprecated public void migrate(TraversableContext context)