Class DefaultMapperReference

  • All Implemented Interfaces:
    Writable

    public class DefaultMapperReference
    extends MapperReference
    Mapper reference which is retrieved via the Mappers#getMapper() method. Used by default if no other component model is specified via Mapper#uses().
    • Field Detail

      • isSingleton

        private final boolean isSingleton
      • isAnnotatedMapper

        private final boolean isAnnotatedMapper
      • importTypes

        private final java.util.Set<Type> importTypes
    • Constructor Detail

      • DefaultMapperReference

        private DefaultMapperReference​(Type type,
                                       boolean isAnnotatedMapper,
                                       boolean isSingleton,
                                       java.util.Set<Type> importTypes,
                                       java.lang.String variableName)
    • Method Detail

      • getInstance

        public static DefaultMapperReference getInstance​(Type type,
                                                         boolean isAnnotatedMapper,
                                                         boolean isSingleton,
                                                         TypeFactory typeFactory,
                                                         java.util.List<java.lang.String> otherMapperReferences)
      • getImportTypes

        public java.util.Set<Type> getImportTypes()
        Description copied from class: ModelElement
        Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
        Overrides:
        getImportTypes in class Field
        Returns:
        A set with type referenced by this model element. Must not be null.
      • isAnnotatedMapper

        public boolean isAnnotatedMapper()
      • isSingleton

        public boolean isSingleton()