mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Get rid of @property
They are depreciated and on their way out in the D world
This commit is contained in:
parent
adbd913b24
commit
3dcbca2551
|
@ -49,7 +49,7 @@ class InstanceFactory {
|
||||||
factoryParameters = InstanceFactoryParameters();
|
factoryParameters = InstanceFactoryParameters();
|
||||||
}
|
}
|
||||||
|
|
||||||
@property void factoryParameters(InstanceFactoryParameters factoryParameters) {
|
void factoryParameters(InstanceFactoryParameters factoryParameters) {
|
||||||
if (factoryParameters.factoryMethod is null) {
|
if (factoryParameters.factoryMethod is null) {
|
||||||
factoryParameters.factoryMethod = &this.createInstance;
|
factoryParameters.factoryMethod = &this.createInstance;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class InstanceFactory {
|
||||||
_factoryParameters = factoryParameters;
|
_factoryParameters = factoryParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property InstanceFactoryParameters factoryParameters() {
|
InstanceFactoryParameters factoryParameters() {
|
||||||
return _factoryParameters;
|
return _factoryParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,27 +25,27 @@ class Registration {
|
||||||
private InstanceFactory _instanceFactory;
|
private InstanceFactory _instanceFactory;
|
||||||
private void delegate() _preDestructor;
|
private void delegate() _preDestructor;
|
||||||
|
|
||||||
@property registeredType() {
|
TypeInfo registeredType() {
|
||||||
return _registeredType;
|
return _registeredType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property instanceType() {
|
TypeInfo_Class instanceType() {
|
||||||
return _instanceType;
|
return _instanceType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property originatingContainer() {
|
shared(DependencyContainer) originatingContainer() {
|
||||||
return _originatingContainer;
|
return _originatingContainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property instanceFactory() {
|
InstanceFactory instanceFactory() {
|
||||||
return _instanceFactory;
|
return _instanceFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property preDestructor() {
|
void delegate() preDestructor() {
|
||||||
return _preDestructor;
|
return _preDestructor;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected @property preDestructor(void delegate() preDestructor) {
|
protected void preDestructor(void delegate() preDestructor) {
|
||||||
_preDestructor = preDestructor;
|
_preDestructor = preDestructor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue