class ClassMapper extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ClassMapper.EntryField
Field of an Entry class, with marshalling information
|
private static class |
ClassMapper.FieldComparator
Comparator for sorting fields.
|
| Modifier and Type | Field and Description |
|---|---|
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)
|
| Modifier | Constructor and Description |
|---|---|
private |
ClassMapper() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
public static ServiceTypeBase toServiceTypeBase(Class cls) throws MarshalException
MarshalExceptionprivate static ServiceTypeBase toServiceTypeBase(Class cls, boolean needCodebase) throws MarshalException
MarshalExceptionprivate static ServiceType toServiceType(Class cls) throws MarshalException
MarshalExceptionpublic static ServiceType[] toServiceType(Class[] classes) throws MarshalException
MarshalExceptionpublic static EntryClassBase toEntryClassBase(Class cls) throws MarshalException
MarshalExceptionprivate static EntryClassBase toEntryClassBase(Class cls, boolean base) throws MarshalException
MarshalExceptionprivate static EntryClass toEntryClass(Class cls) throws MarshalException
MarshalExceptionpublic static ClassMapper.EntryField[] getFields(Class cls)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.