/** * Start building a new class-based service binding. * <p> * Does NOT service the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> service(Class<T> serviceType) { return new ClassBinding<>(serviceType); }
/** * Start building a new class-based service binding. * <p> * Does NOT service the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> service(Class<T> serviceType) { return new ClassBinding<>(serviceType); }
/** * Start building a new class-based service binding. * <p> * Binds the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> serviceAsContract(Class<T> serviceType) { return new ClassBinding<>(serviceType).to(serviceType); }
/** * Start building a new class-based service binding. * <p> * Binds the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> serviceAsContract(Class<T> serviceType) { return new ClassBinding<>(serviceType).to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> service(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> service(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(Type serviceType) { return new ClassBinding<>((Class<T>) ReflectionHelper.getRawClass(serviceType)) .asType((Class<T>) serviceType) .to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(Type serviceType) { return new ClassBinding<>((Class<T>) ReflectionHelper.getRawClass(serviceType)) .asType((Class<T>) serviceType) .to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()) .to(serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()) .to(serviceType.getType()); }
/** * Start building a new class-based service binding. * <p> * Does NOT service the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> service(Class<T> serviceType) { return new ClassBinding<>(serviceType); }
/** * Start building a new class-based service binding. * <p> * Does NOT service the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> service(Class<T> serviceType) { return new ClassBinding<>(serviceType); }
/** * Start building a new class-based service binding. * <p> * Binds the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> serviceAsContract(Class<T> serviceType) { return new ClassBinding<>(serviceType).to(serviceType); }
/** * Start building a new class-based service binding. * <p> * Binds the service type itself as a contract type. * * @param <T> service type. * @param serviceType service class. * @return initialized binding builder. */ public static <T> ClassBinding<T> serviceAsContract(Class<T> serviceType) { return new ClassBinding<>(serviceType).to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> service(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> service(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(Type serviceType) { return new ClassBinding<>((Class<T>) ReflectionHelper.getRawClass(serviceType)) .asType((Class<T>) serviceType) .to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(Type serviceType) { return new ClassBinding<>((Class<T>) ReflectionHelper.getRawClass(serviceType)) .asType((Class<T>) serviceType) .to(serviceType); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()) .to(serviceType.getType()); }
/** * Start building a new generic type-based service binding. * <p> * Binds the generic service type itself as a contract type. * * @param <T> service type. * @param serviceType generic service type information. * @return initialized binding builder. */ @SuppressWarnings("unchecked") public static <T> ClassBinding<T> serviceAsContract(GenericType<T> serviceType) { return (ClassBinding<T>) new ClassBinding<>(serviceType.getRawType()) .asType((Class<T>) serviceType.getType()) .to(serviceType.getType()); }