blob: ef0b81c9c1f77ad2e51d90ba49c9b3b1349908d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.test;
import com.yahoo.config.model.ConfigModelRegistry;
import com.yahoo.config.model.MapConfigModelRegistry;
/**
* Creates a {@link ConfigModelRegistry} instance that simulates the hosted environment.
*
* @author bjorncs
*/
public class HostedConfigModelRegistry {
private HostedConfigModelRegistry() {}
public static ConfigModelRegistry create() {
return MapConfigModelRegistry.createFromList(new ModelBuilderAddingAccessControlFilter());
}
}
|