Package com.sun.jini.reggie
Class Item
java.lang.Object
com.sun.jini.reggie.Item
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionEntryRep[]ServiceItem.attributeSets converted to EntryReps.The codebase of the service object.ServiceItem.service as a MarshalledWrapper.ServiceItem.serviceID.com.sun.jini.reggie.ServiceTypeThe Class of ServiceItem.service converted to ServiceType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deep clone.get()Convert back to a ServiceItem.static ServiceItem[]toServiceItem(ArrayList reps) Converts an ArrayList of Item to an array of ServiceItem.
-
Field Details
-
serviceID
ServiceItem.serviceID. -
serviceType
public com.sun.jini.reggie.ServiceType serviceTypeThe Class of ServiceItem.service converted to ServiceType. -
codebase
The codebase of the service object. -
service
ServiceItem.service as a MarshalledWrapper. -
attributeSets
ServiceItem.attributeSets converted to EntryReps.
-
-
Constructor Details
-
Item
Converts a ServiceItem to an Item. Any exception that results is bundled up into a MarshalException.- Throws:
RemoteException
-
-
Method Details
-
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
Deep clone. This is really only needed in the server, but it's very convenient to have here. -
toServiceItem
Converts an ArrayList of Item to an array of ServiceItem.
-