public < ABS , IMPL extends ABS > InjectorConfiguration withAlias ( Class scope , Executable forExecutable , Class < ABS > abstractDefinition , Class < IMPL > implementationDefinition ) { //noinspection unchecked return new InjectorConfiguration ( scopes , definedClasses , factories , factoryClasses , sharedClasses , sharedInstances , aliases . withModified ( scope , ( value ) - > value . with ( forExecutable , abstractDefinition , implementationDefinition ) ) , collectedAliases , namedParameterValues ) ; }
Defines on a per - method or per - constructor basis that instead of the class defined in abstractDefinition the class defined in implementationDefinition should be used .