public static BindingInfo create(Binding<?> binding, Key<?> boundKey, Object instance) { BindingInfo bindingInfo = new BindingInfo(); bindingInfo.key = binding.getKey(); bindingInfo.boundKey = boundKey; bindingInfo.boundInstance = instance; bindingInfo.scope = binding.acceptScopingVisitor(new GuiceScopingVisitor()); return bindingInfo; }
public static BindingInfo create(Key<?> boundKey) { BindingInfo bindingInfo = new BindingInfo(); bindingInfo.boundKey = boundKey; return bindingInfo; }