use of com.facebook.airlift.configuration.AbstractConfigurationAwareModule in project presto by prestodb.
the class ConfigurationAwareModules method combine.
public static Module combine(Module... modules) {
checkArgument(modules.length > 0, "No modules given");
if (modules.length == 1) {
return modules[0];
}
return new AbstractConfigurationAwareModule() {
@Override
protected void setup(Binder binder) {
for (Module module : modules) {
requireNonNull(module, "module is null");
install(module);
}
}
};
}
Aggregations