Class ReflectionClassFactory
- java.lang.Object
-
- org.infinispan.protostream.annotations.impl.types.ReflectionClassFactory
-
- All Implemented Interfaces:
UnifiedTypeFactory
public final class ReflectionClassFactory extends Object implements UnifiedTypeFactory
Implementation relying on reflection.- Since:
- 4.3
- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description ReflectionClassFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XClass
fromClass(Class<?> c)
Wraps the given Class in an XClass.XClass
fromTypeMirror(TypeMirror typeMirror)
Wraps the given TypeMirror in an XClass.
-
-
-
Method Detail
-
fromClass
public XClass fromClass(Class<?> c)
Description copied from interface:UnifiedTypeFactory
Wraps the given Class in an XClass.- Specified by:
fromClass
in interfaceUnifiedTypeFactory
- Parameters:
c
- can be null- Returns:
- the wrapper XClass, or null iff the actual argument is null
-
fromTypeMirror
public XClass fromTypeMirror(TypeMirror typeMirror)
Description copied from interface:UnifiedTypeFactory
Wraps the given TypeMirror in an XClass.- Specified by:
fromTypeMirror
in interfaceUnifiedTypeFactory
- Parameters:
typeMirror
- can be null- Returns:
- the wrapper XClass, or null iff the actual argument is null
-
-