Class ServiceItem

java.lang.Object
net.jini.core.lookup.ServiceItem
All Implemented Interfaces:
Serializable

public class ServiceItem extends Object implements Serializable
Items are stored in and retrieved from the lookup service using instances of this class.
Since:
1.0
Author:
Sun Microsystems, Inc.
See Also:
  • Field Details

    • serviceID

      public ServiceID serviceID
      A service ID, or null if registering for the first time.
    • service

      public Object service
      A service object.
    • attributeSets

      public Entry[] attributeSets
      Attribute sets.
  • Constructor Details

    • ServiceItem

      public ServiceItem(ServiceID serviceID, Object service, Entry[] attrSets)
      Simple constructor.
      Parameters:
      serviceID - service ID, or null if registering for the first time
      service - service object
      attrSets - attribute sets
  • Method Details

    • getService

      public Object getService()
    • toString

      public String toString()
      Returns a String representation of this ServiceItem.
      Overrides:
      toString in class Object
      Returns:
      String representation of this ServiceItem