Package org.apache.johnzon.mapper.access
Class KnownNotOpenedJavaTypesAccessMode
- java.lang.Object
-
- org.apache.johnzon.mapper.access.KnownNotOpenedJavaTypesAccessMode
-
- All Implemented Interfaces:
AccessMode
public class KnownNotOpenedJavaTypesAccessMode extends Object implements AccessMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
KnownNotOpenedJavaTypesAccessMode.BaseFactory
private static class
KnownNotOpenedJavaTypesAccessMode.ExceptionMessageFactory
private static class
KnownNotOpenedJavaTypesAccessMode.InlineReader<T,F>
private static class
KnownNotOpenedJavaTypesAccessMode.InlineWriter<T,F>
-
Nested classes/interfaces inherited from interface org.apache.johnzon.mapper.access.AccessMode
AccessMode.DecoratedType, AccessMode.Factory, AccessMode.Reader, AccessMode.Writer
-
-
Field Summary
Fields Modifier and Type Field Description private AccessMode
delegate
-
Constructor Summary
Constructors Constructor Description KnownNotOpenedJavaTypesAccessMode(AccessMode delegate)
-
Method Summary
-
-
-
Field Detail
-
delegate
private final AccessMode delegate
-
-
Constructor Detail
-
KnownNotOpenedJavaTypesAccessMode
public KnownNotOpenedJavaTypesAccessMode(AccessMode delegate)
-
-
Method Detail
-
isInaccessibleAndThrowable
private boolean isInaccessibleAndThrowable(Class<?> clazz, RuntimeException ioe)
-
findThrowableWriters
private Map<String,AccessMode.Writer> findThrowableWriters(Class<?> clazz)
-
findThrowableReaders
private Map<String,AccessMode.Reader> findThrowableReaders(Class<?> clazz)
-
findStackTraceElementReaders
private Map<String,AccessMode.Reader> findStackTraceElementReaders(Class<?> clazz)
-
findThrowableFactory
private AccessMode.Factory findThrowableFactory(Class<?> clazz)
-
isJavaThrowable
private boolean isJavaThrowable(Class<?> clazz)
-
isStackTraceElement
private boolean isStackTraceElement(Class<?> clazz)
-
findFactory
public AccessMode.Factory findFactory(Class<?> clazz, Function<AnnotatedElement,String>... parameterNameExtractors)
- Specified by:
findFactory
in interfaceAccessMode
-
findFactory
public AccessMode.Factory findFactory(Class<?> clazz)
- Specified by:
findFactory
in interfaceAccessMode
-
findReaders
public Map<String,AccessMode.Reader> findReaders(Class<?> clazz)
- Specified by:
findReaders
in interfaceAccessMode
-
findWriters
public Map<String,AccessMode.Writer> findWriters(Class<?> clazz)
- Specified by:
findWriters
in interfaceAccessMode
-
findReader
public ObjectConverter.Reader<?> findReader(Class<?> clazz)
- Specified by:
findReader
in interfaceAccessMode
-
findWriter
public ObjectConverter.Writer<?> findWriter(Class<?> clazz)
- Specified by:
findWriter
in interfaceAccessMode
-
findAnyGetter
public Method findAnyGetter(Class<?> clazz)
- Specified by:
findAnyGetter
in interfaceAccessMode
-
findAnySetter
public Method findAnySetter(Class<?> clazz)
- Specified by:
findAnySetter
in interfaceAccessMode
-
findAnyField
public Field findAnyField(Class<?> clazz)
- Specified by:
findAnyField
in interfaceAccessMode
-
findMapAdder
public Method findMapAdder(Class<?> clazz)
- Specified by:
findMapAdder
in interfaceAccessMode
-
findAdapter
public Adapter<?,?> findAdapter(Class<?> clazz)
- Specified by:
findAdapter
in interfaceAccessMode
-
fieldComparator
public Comparator<String> fieldComparator(Class<?> clazz)
- Specified by:
fieldComparator
in interfaceAccessMode
-
afterParsed
public void afterParsed(Class<?> clazz)
Description copied from interface:AccessMode
Called once johnzon will not use AccessMode anymore. Can be used to clean up any local cache.- Specified by:
afterParsed
in interfaceAccessMode
- Parameters:
clazz
- the parsed class.
-
-