Class ServiceDescription

java.lang.Object
org.wildfly.discovery.ServiceDescription
All Implemented Interfaces:
Serializable

public final class ServiceDescription extends Object implements Serializable
An abstract location description for a service, consisting of a service type and a filter specification.
See Also:
  • Constructor Details

    • ServiceDescription

      public ServiceDescription(ServiceType serviceType, FilterSpec filterSpec)
      Construct a new instance.
      Parameters:
      serviceType - the service type (must not be null)
      filterSpec - the filter specification (must not be null)
  • Method Details

    • getServiceType

      public ServiceType getServiceType()
      Get the service type.
      Returns:
      the service type (not null)
    • getFilterSpec

      public FilterSpec getFilterSpec()
      Get the filter specification.
      Returns:
      the filter specification (not null)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(ServiceDescription other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object