public InjectorConfiguration withDefined ( Constructor constructorDefinition ) { //noinspection unchecked return new InjectorConfiguration ( scopes , definedClasses . withModified ( scopeValue -> scopeValue . withCompute ( constructorDefinition . getDeclaringClass ( ) , ( key , currentValue ) -> ( currentValue == null ? new ImmutableArrayList < Constructor > ( ) : currentValue ) . withAdd ( constructorDefinition ) ) ) , factories , factoryClasses , sharedClasses , sharedInstances , aliases , collectedAliases , namedParameterValues ) ; }
Marks a class as injectable on a global scope with one specific constructor .