Class ConstructorConstructor


  • public final class ConstructorConstructor
    extends java.lang.Object
    Returns a function that can construct an instance of a requested type.
    • Constructor Detail

      • ConstructorConstructor

        public ConstructorConstructor​(java.util.Map<java.lang.reflect.Type,​InstanceCreator<?>> instanceCreators)
    • Method Detail

      • newDefaultConstructor

        private <T> ObjectConstructor<T> newDefaultConstructor​(java.lang.Class<? super T> rawType)
      • newDefaultImplementationConstructor

        private <T> ObjectConstructor<T> newDefaultImplementationConstructor​(java.lang.reflect.Type type,
                                                                             java.lang.Class<? super T> rawType)
        Constructors for common interface types like Map and List and their subtypes.
      • newUnsafeAllocator

        private <T> ObjectConstructor<T> newUnsafeAllocator​(java.lang.reflect.Type type,
                                                            java.lang.Class<? super T> rawType)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object