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, unlinkEmbeddedDirtyables
addStructureChangeListener, containsKey, copyToImpl, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals
public 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)
HashStructureAdapter
HashStructureAdapter._hash
, this base equals implementation should be
sufficient and not need to be overridden.equals
in class HashStructureAdapter
protected 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)
HashStructureAdapter
copyTo
in class HashStructureAdapter
protected final void copyToImpl(java.lang.Object object)
public HashStructure getHashStructure()
HashStructureAdapter
getHashStructure
in interface DependencyStorage
getHashStructure
in class HashStructureAdapter
public 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()
Interdependency
getDependencies
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)
Interdependency
addDependency
in interface Interdependency
dependable
- 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)
Interdependency
removeDependency
in interface Interdependency
dependable
- removes the dependency of this profile on the specified dependable.public java.lang.String getShortLabel()
Displayable
String
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 Displayable
getShortLabel
in class DeployElement
Displayable
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)