mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Merge remote-tracking branch 'origin/main' into develop
This commit is contained in:
commit
d2d4184af6
|
@ -309,6 +309,7 @@ class AutowiredRegistration(RegistrationType : Object) : Registration {
|
||||||
private void delegate() getPreDestructor(RegistrationType instance) {
|
private void delegate() getPreDestructor(RegistrationType instance) {
|
||||||
void delegate() preDestructor = null;
|
void delegate() preDestructor = null;
|
||||||
static foreach (memberName; __traits(allMembers, RegistrationType)) {
|
static foreach (memberName; __traits(allMembers, RegistrationType)) {
|
||||||
|
static if (__traits(compiles, __traits(getOverloads, RegistrationType, memberName))) {
|
||||||
static foreach (overload; __traits(getOverloads, RegistrationType, memberName)) {
|
static foreach (overload; __traits(getOverloads, RegistrationType, memberName)) {
|
||||||
static if (__traits(compiles, __traits(getProtection, overload))
|
static if (__traits(compiles, __traits(getProtection, overload))
|
||||||
&& __traits(getProtection, overload) == "public"
|
&& __traits(getProtection, overload) == "public"
|
||||||
|
@ -318,6 +319,7 @@ class AutowiredRegistration(RegistrationType : Object) : Registration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return preDestructor;
|
return preDestructor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue