GigaSpaces XAP 9.7.2 API

com.sun.jini.reggie
Class Item

java.lang.Object
  extended by 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:
Serialized Form

Field Summary
 EntryRep[] attributeSets
          ServiceItem.attributeSets converted to EntryReps.
 String codebase
          The codebase of the service object.
 MarshalledWrapper service
          ServiceItem.service as a MarshalledWrapper.
 ServiceID serviceID
          ServiceItem.serviceID.
 com.sun.jini.reggie.ServiceType serviceType
          The Class of ServiceItem.service converted to ServiceType.
 
Constructor Summary
Item(ServiceItem item)
          Converts a ServiceItem to an Item.
 
Method Summary
 Object clone()
          Deep clone.
 ServiceItem get()
          Convert back to a ServiceItem.
static ServiceItem[] toServiceItem(ArrayList reps)
          Converts an ArrayList of Item to an array of ServiceItem.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

Item

public Item(ServiceItem item)
     throws RemoteException
Converts a ServiceItem to an Item. Any exception that results is bundled up into a MarshalException.

Throws:
RemoteException
Method Detail

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.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.