Restore callPostConstructors

This commit is contained in:
heromyth 2020-02-10 15:34:00 +08:00
parent b9d4bd1b83
commit 15d8c7e754

View file

@ -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)();
// } }
// } }
} }
/** /**