/** * Creates a new configuration from a JSON Object, for use in testing. */ public JsonContainerConfig(JSONObject json, Expressions expressions) { this.expressions = expressions; host = null; port = null; config = createContainers(json); init(); }
/** * Creates a new configuration from a JSON Object, for use in testing. */ public JsonContainerConfig(JSONObject json, Expressions expressions) { this.expressions = expressions; host = null; port = null; config = createContainers(json); init(); }
/** * Creates a new configuration from files. * @throws ContainerConfigException */ @Inject public JsonContainerConfig(@Named("shindig.containers.default") String containers, @Nullable @Named("shindig.host") String host, @Nullable @Named("shindig.port") String port, Expressions expressions) throws ContainerConfigException { this.expressions = expressions; this.host = host; this.port = port; JSONObject configJson = loadContainers(containers); config = createContainers(configJson); init(); }
/** * Creates a new configuration from files. * @throws ContainerConfigException */ @Inject public JsonContainerConfig(@Named("shindig.containers.default") String containers, @Nullable @Named("shindig.host") String host, @Nullable @Named("shindig.port") String port, Expressions expressions) throws ContainerConfigException { this.expressions = expressions; this.host = host; this.port = port; JSONObject configJson = loadContainers(containers); config = createContainers(configJson); init(); }