mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Restore callPostConstructors
This commit is contained in:
parent
b9d4bd1b83
commit
15d8c7e754
|
@ -438,16 +438,16 @@ synchronized class DependencyContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void callPostConstructors(Type)(Type instance) {
|
private void callPostConstructors(Type)(Type instance) {
|
||||||
// foreach (memberName; __traits(allMembers, Type)) {
|
foreach (memberName; __traits(allMembers, Type)) {
|
||||||
// mixin(createImportsString!Type);
|
mixin(createImportsString!Type);
|
||||||
|
enum QualifiedName = fullyQualifiedName!Type ~ `.` ~ memberName;
|
||||||
// static if (__traits(compiles, __traits(getProtection, __traits(getMember, instance, memberName)))
|
static if (__traits(compiles, __traits(getProtection, __traits(getMember, instance, memberName)))
|
||||||
// && __traits(getProtection, __traits(getMember, instance, memberName)) == "public"
|
&& __traits(getProtection, __traits(getMember, instance, memberName)) == "public"
|
||||||
// && isFunction!(mixin(fullyQualifiedName!Type ~ `.` ~ memberName))
|
&& isFunction!(QualifiedName)
|
||||||
// && hasUDA!(__traits(getMember, instance, memberName), PostConstruct)) {
|
&& hasUDA!(__traits(getMember, instance, memberName), PostConstruct)) {
|
||||||
// __traits(getMember, instance, memberName)();
|
__traits(getMember, instance, memberName)();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue