|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.reggie.EntryRep
class EntryRep
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.
Field Summary | |
---|---|
String |
codebase
The codebase of the entry class. |
EntryClass |
eclass
The Class of the Entry converted to EntryClass. |
Object[] |
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). |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
EntryRep(Entry entry)
Converts an Entry to an EntryRep. |
Method Summary | |
---|---|
Object |
clone()
Deep clone (which just means cloning the fields array too). |
boolean |
equals(Object obj)
EntryReps are equal if they have the same class and the fields are pairwise equal. |
Entry |
get()
Convert back to an Entry. |
int |
hashCode()
We don't need this in the client or the server, but since we redefine equals we provide a minimal hashCode that works. |
static Entry[] |
toEntry(EntryRep[] reps)
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public EntryClass eclass
public String codebase
public Object[] fields
Constructor Detail |
---|
public EntryRep(Entry entry) throws RemoteException
RemoteException
Method Detail |
---|
public Entry get()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Object clone()
clone
in class Object
public static EntryRep[] toEntryRep(Entry[] entries, boolean needCodebase) throws RemoteException
RemoteException
public static Entry[] toEntry(EntryRep[] reps)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |