should use resolver

You should provide a custom resolver to resolve the fullname, rather than overwriting resolve method directly, according to container's design.