Package com.sun.jini.reggie
Class EntryRep
java.lang.Object
com.sun.jini.reggie.EntryRep
- All Implemented Interfaces:
Serializable,Cloneable
An EntryRep contains the fields of an Entry 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 TypeFieldDescriptionThe codebase of the entry class.The Class of the Entry converted to EntryClass.Object[]The public fields of the Entry, each converted as necessary to a MarshalledWrapper (or left as is if of known java.lang immutable type). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deep clone (which just means cloning the fields array too).booleanEntryReps are equal if they have the same class and the fields are pairwise equal.get()Convert back to an Entry.inthashCode()static Entry[]Converts an array of EntryRep to an array of Entry.static EntryRep[]toEntryRep(Entry[] entries, boolean needCodebase) Converts an array of Entry to an array of EntryRep.toString()
-
Field Details
-
eclass
The Class of the Entry converted to EntryClass. -
codebase
The codebase of the entry class. -
fields
The public fields of the Entry, each converted as necessary to a MarshalledWrapper (or left as is if of known java.lang immutable type). The fields are in super- to subclass order.
-
-
Constructor Details
-
EntryRep
Converts an Entry to an EntryRep. Any exception that results is bundled up into a MarshalException.- Throws:
RemoteException
-
-
Method Details
-
get
Convert back to an Entry. If the Entry cannot be constructed, null is returned. If a field cannot be unmarshalled, it is set to null. -
hashCode
public int hashCode() -
toString
-
equals
EntryReps are equal if they have the same class and the fields are pairwise equal. This is really only needed in the server, but it's very convenient to have here. -
clone
Deep clone (which just means cloning the fields array too). This is really only needed in the server, but it's very convenient to have here. -
toEntryRep
Converts an array of Entry to an array of EntryRep. If needCodebase is false, then the codebase of every EntryRep will be null.- Throws:
RemoteException
-
toEntry
Converts an array of EntryRep to an array of Entry.
-