javax.slee.management
Class DeployableUnitID

java.lang.Object
  extended by javax.slee.management.DeployableUnitID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class DeployableUnitID
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

The DeployableUnitID class encapsulate the identity of deployable units installed in the SLEE.

See Also:
Serialized Form

Constructor Summary
DeployableUnitID(java.lang.String url)
          Create a new deployable unit identifier.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare this deployable unit identifier with the specified object for order.
 boolean equals(java.lang.Object obj)
          Compare this deployable unit identifier for equality with another object.
 java.lang.String getURL()
          Get the URL that the deployable unit was installed from.
 int hashCode()
          Get a hash code value for this deployable unit identifier.
 java.lang.String toString()
          Get a string representation for this deployable unit identifier.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployableUnitID

public DeployableUnitID(java.lang.String url)
Create a new deployable unit identifier.

Parameters:
url - the URL where the deployable unit was installed from.
Throws:
java.lang.NullPointerException - if url is null.
Method Detail

getURL

public final java.lang.String getURL()
Get the URL that the deployable unit was installed from.

Returns:
the URL that the deployable unit was installed from.

equals

public final boolean equals(java.lang.Object obj)
Compare this deployable unit identifier for equality with another object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this with.
Returns:
true if obj is a deployable unit identifier with the same URL as this, false otherwise.
See Also:
Object.equals(Object)

hashCode

public final int hashCode()
Get a hash code value for this deployable unit identifier.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this identifier.
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Get a string representation for this deployable unit identifier.

Overrides:
toString in class java.lang.Object
Returns:
a string representation for this identifier.
See Also:
Object.toString()

compareTo

public int compareTo(java.lang.Object obj)
Compare this deployable unit identifier with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Deployable unit ordering is determined by the java.lang.String ordering of the url attributes of this and obj.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - the object to compare this with.
Returns:
a negative integer, zero, or a positive integer if this deployable unit identifier is considered less than, equal to, or greater than the specified object.
See Also:
Comparable.compareTo(Object)


Copyright © 2008. All Rights Reserved.