Class MirrorClassFactory

  • All Implemented Interfaces:
    org.infinispan.protostream.annotations.impl.types.XTypeFactory

    public final class MirrorClassFactory
    extends Object
    implements org.infinispan.protostream.annotations.impl.types.XTypeFactory
    Implementation relying primarily on javax.lang.model.type.TypeMirror, but also capable to use reflection.
    Since:
    4.3
    Author:
    anistor@redhat.com
    • Method Detail

      • fromClass

        public org.infinispan.protostream.annotations.impl.types.XClass fromClass​(Class<?> c)
        Specified by:
        fromClass in interface org.infinispan.protostream.annotations.impl.types.XTypeFactory
      • fromTypeMirror

        public org.infinispan.protostream.annotations.impl.types.XClass fromTypeMirror​(TypeMirror typeMirror)
        Specified by:
        fromTypeMirror in interface org.infinispan.protostream.annotations.impl.types.XTypeFactory