Class Item

java.lang.Object
com.sun.jini.reggie.Item
All Implemented Interfaces:
Serializable, Cloneable

public class Item extends Object implements Serializable, Cloneable
An Item contains the fields of a ServiceItem packaged up for transmission between client-side proxies and the registrar server. Instances are never visible to clients, they are private to the communication between the proxies and the server.

This class only has a bare minimum of methods, to minimize the amount of code downloaded into clients.

Author:
Sun Microsystems, Inc.
See Also:
  • Field Details

    • serviceID

      public ServiceID serviceID
      ServiceItem.serviceID.
    • serviceType

      public com.sun.jini.reggie.ServiceType serviceType
      The Class of ServiceItem.service converted to ServiceType.
    • codebase

      public String codebase
      The codebase of the service object.
    • service

      public MarshalledWrapper service
      ServiceItem.service as a MarshalledWrapper.
    • attributeSets

      public EntryRep[] attributeSets
      ServiceItem.attributeSets converted to EntryReps.
  • Constructor Details

  • Method Details

    • get

      public ServiceItem get()
      Convert back to a ServiceItem. If the service object cannot be constructed, it is set to null. If an Entry cannot be constructed, it is set to null. If a field of an Entry cannot be unmarshalled, it is set to null.
    • clone

      public Object clone()
      Deep clone. This is really only needed in the server, but it's very convenient to have here.
      Overrides:
      clone in class Object
    • toServiceItem

      public static ServiceItem[] toServiceItem(ArrayList reps)
      Converts an ArrayList of Item to an array of ServiceItem.