diff --git a/source/poodinis/factory.d b/source/poodinis/factory.d index 82d6022..7f51419 100644 --- a/source/poodinis/factory.d +++ b/source/poodinis/factory.d @@ -49,7 +49,7 @@ class InstanceFactory { factoryParameters = InstanceFactoryParameters(); } - @property void factoryParameters(InstanceFactoryParameters factoryParameters) { + void factoryParameters(InstanceFactoryParameters factoryParameters) { if (factoryParameters.factoryMethod is null) { factoryParameters.factoryMethod = &this.createInstance; } @@ -62,7 +62,7 @@ class InstanceFactory { _factoryParameters = factoryParameters; } - @property InstanceFactoryParameters factoryParameters() { + InstanceFactoryParameters factoryParameters() { return _factoryParameters; } diff --git a/source/poodinis/registration.d b/source/poodinis/registration.d index e5c244c..680a030 100644 --- a/source/poodinis/registration.d +++ b/source/poodinis/registration.d @@ -25,27 +25,27 @@ class Registration { private InstanceFactory _instanceFactory; private void delegate() _preDestructor; - @property registeredType() { + TypeInfo registeredType() { return _registeredType; } - @property instanceType() { + TypeInfo_Class instanceType() { return _instanceType; } - @property originatingContainer() { + shared(DependencyContainer) originatingContainer() { return _originatingContainer; } - @property instanceFactory() { + InstanceFactory instanceFactory() { return _instanceFactory; } - @property preDestructor() { + void delegate() preDestructor() { return _preDestructor; } - protected @property preDestructor(void delegate() preDestructor) { + protected void preDestructor(void delegate() preDestructor) { _preDestructor = preDestructor; }