From ae139d5f1f6a468f66e1327e009245919faa62ad Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Wed, 26 Nov 2014 23:03:18 +0100 Subject: [PATCH] Change names to be more unified --- source/poodinis/dependency.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/poodinis/dependency.d b/source/poodinis/dependency.d index 7dd0665..c7568bd 100644 --- a/source/poodinis/dependency.d +++ b/source/poodinis/dependency.d @@ -19,8 +19,8 @@ public import poodinis.registration; public import poodinis.autowire; class RegistrationException : Exception { - this(string message, TypeInfo registeredType, TypeInfo_Class instantiatableType) { - super(format("Exception while registering type %s to %s: %s", registeredType.toString(), instantiatableType.name, message)); + this(string message, TypeInfo registeredType, TypeInfo_Class concreteType) { + super(format("Exception while registering type %s to %s: %s", registeredType.toString(), concreteType.name, message)); } } @@ -47,13 +47,13 @@ class DependencyContainer { public Registration register(InterfaceType, ConcreteType : InterfaceType)() { TypeInfo registeredType = typeid(InterfaceType); - TypeInfo_Class instantiatableType = typeid(ConcreteType); + TypeInfo_Class concreteType = typeid(ConcreteType); debug { - writeln(format("DEBUG: Register type %s (as %s)", instantiatableType.toString(), registeredType.toString())); + writeln(format("DEBUG: Register type %s (as %s)", concreteType.toString(), registeredType.toString())); } - Registration newRegistration = new Registration(registeredType, instantiatableType); + Registration newRegistration = new Registration(registeredType, concreteType); newRegistration.singleInstance(); registrations[registeredType] = newRegistration; return newRegistration;