예제 #1
0
 /**
  * Get a new factory class-based service binding builder.
  *
  * @param <T> service type.
  * @param factoryType service factory class.
  * @param factoryScope factory scope.
  * @return initialized binding builder.
  */
 public static <T> ServiceBindingBuilder<T> newFactoryBinder(
     Class<? extends Factory<T>> factoryType, Class<? extends Annotation> factoryScope) {
   return AbstractBindingBuilder.<T>createFactoryBinder(factoryType, factoryScope);
 }
예제 #2
0
 /**
  * Get a new factory instance-based service binding builder.
  *
  * @param <T> service type.
  * @param factory service instance.
  * @return initialized binding builder.
  */
 public static <T> ServiceBindingBuilder<T> newFactoryBinder(Factory<T> factory) {
   return AbstractBindingBuilder.createFactoryBinder(factory);
 }