|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.reggie.ClassMapper
class ClassMapper
Maps Class to ServiceType/Base, Class to EntryClass/Base, and Class to Field[], with caching for efficiency.
Nested Class Summary | |
---|---|
(package private) static class |
ClassMapper.EntryField
Field of an Entry class, with marshalling information |
private static class |
ClassMapper.FieldComparator
Comparator for sorting fields. |
Field Summary | |
---|---|
private static ClassMapper.FieldComparator |
comparator
Comparator for sorting fields |
private static ServiceType[] |
empty
|
private static WeakHashMap |
entryMap
Weak Map from Class to SoftReference(EntryClassBase) |
private static WeakHashMap |
fieldMap
Weak Map from Class to SoftReference(sorted Field[]) |
private static Class[] |
noArg
|
private static WeakHashMap |
serviceMap
Weak Map from Class to SoftReference(ServiceTypeBase) |
Constructor Summary | |
---|---|
private |
ClassMapper()
|
Method Summary | |
---|---|
static ClassMapper.EntryField[] |
getFields(Class cls)
Returns public fields, in super to subclass order, sorted alphabetically within a given class. |
private static EntryClass |
toEntryClass(Class cls)
Returns an EntryClass descriptor for a class. |
static EntryClassBase |
toEntryClassBase(Class cls)
Returns a EntryClassBase descriptor for a class. |
private static EntryClassBase |
toEntryClassBase(Class cls,
boolean base)
Returns a EntryClassBase descriptor for a class. |
private static ServiceType |
toServiceType(Class cls)
Returns a ServiceType descriptor for a class. |
static ServiceType[] |
toServiceType(Class[] classes)
Converts an array of Class to an array of ServiceType. |
static ServiceTypeBase |
toServiceTypeBase(Class cls)
Returns a ServiceTypeBase descriptor for a class. |
private static ServiceTypeBase |
toServiceTypeBase(Class cls,
boolean needCodebase)
Returns a ServiceTypeBase descriptor for a class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final WeakHashMap serviceMap
private static final WeakHashMap entryMap
private static final WeakHashMap fieldMap
private static final ClassMapper.FieldComparator comparator
private static final ServiceType[] empty
private static final Class[] noArg
Constructor Detail |
---|
private ClassMapper()
Method Detail |
---|
public static ServiceTypeBase toServiceTypeBase(Class cls) throws MarshalException
MarshalException
private static ServiceTypeBase toServiceTypeBase(Class cls, boolean needCodebase) throws MarshalException
MarshalException
private static ServiceType toServiceType(Class cls) throws MarshalException
MarshalException
public static ServiceType[] toServiceType(Class[] classes) throws MarshalException
MarshalException
public static EntryClassBase toEntryClassBase(Class cls) throws MarshalException
MarshalException
private static EntryClassBase toEntryClassBase(Class cls, boolean base) throws MarshalException
MarshalException
private static EntryClass toEntryClass(Class cls) throws MarshalException
MarshalException
public static ClassMapper.EntryField[] getFields(Class cls)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |