throw new IllegalArgumentException("theClass must not be an interface class: " + theClass);
}
ServiceBinding binding = new ServiceBinding(theInterface.getName());
binding.setImplementingClass(theClass.getName());
if (required) {
binding.markDirectlyRequired();
}
return binding;
}
private static String joined(String... strings) {