Class MirrorTypeFactory
java.lang.Object
org.infinispan.protostream.annotations.impl.processor.types.MirrorTypeFactory
- All Implemented Interfaces:
org.infinispan.protostream.annotations.impl.types.XTypeFactory
public final class MirrorTypeFactory
extends Object
implements org.infinispan.protostream.annotations.impl.types.XTypeFactory
Implementation relying primarily on
TypeMirror, but also capable to use reflection
similarly to ReflectionTypeFactory.- Since:
- 4.3
- Author:
- anistor@redhat.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.protostream.annotations.impl.types.XClassorg.infinispan.protostream.annotations.impl.types.XClassfromTypeMirror(TypeMirror typeMirror) Wraps the given TypeMirror in an XClass.
-
Constructor Details
-
MirrorTypeFactory
-
-
Method Details
-
fromClass
- Specified by:
fromClassin interfaceorg.infinispan.protostream.annotations.impl.types.XTypeFactory
-
fromTypeMirror
public org.infinispan.protostream.annotations.impl.types.XClass fromTypeMirror(TypeMirror typeMirror) Wraps the given TypeMirror in an XClass. Implementation must be idempotent. The returned value must be reference-identical.- Parameters:
typeMirror- can be null- Returns:
- the wrapper XClass, or null iff the actual argument is null
-