Пример #1
0
 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;
 }
Пример #2
0
    public static BindingInfo create(Key<?> boundKey) {
      BindingInfo bindingInfo = new BindingInfo();
      bindingInfo.boundKey = boundKey;

      return bindingInfo;
    }