@Test(expected = ConfigurationException.class) public void parseError() throws Exception { Configuration cfg = Configuration.readFromFile(null, new StringReader("import;\n")); }
public static Configuration readFromFile(File dir, Reader reader) throws IOException, ConfigurationException { return new ParserSupport(Optional.ofNullable(dir), reader).configuration(); }
Configuration { public static Configuration readFromFile(File dir, Reader reader) throws IOException, ConfigurationException { return new ParserSupport(Optional.ofNullable(dir), reader).configuration(); } }
Configuration { public static Configuration readFromFile(File dir, Reader reader) throws IOException, ConfigurationException { return new ParserSupport(Optional.ofNullable(dir), reader).configuration(); } Configuration(
            Collection<ImportStatement> imports,
            Collection<MonitorStatement> monitors,
            Collection<RuleStatement> rules); }
Configuration { public static Configuration readFromFile(File dir, Reader reader) throws IOException, ConfigurationException { return new ParserSupport(Optional.ofNullable(dir), reader).configuration(); } Configuration(
            Collection<ImportStatement> imports,
            Collection<MonitorStatement> monitors,
            Collection<RuleStatement> rules); synchronized T create(MetricRegistryConstructor<T> constructor, Supplier<DateTime> now, EndpointRegistration api); T create(MetricRegistryConstructor<T> constructor, EndpointRegistration api); Collection<ImportStatement> getImports(); Collection<MonitorStatement> getMonitors(); List<RuleStatement> getRules(); boolean needsResolve(); boolean isResolved(); Configuration resolve(); static Configuration readFromFile(File dir, Reader reader); static Configuration readFromFile(File file); StringBuffer configString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
Configuration { public static Configuration readFromFile(File dir, Reader reader) throws IOException, ConfigurationException { return new ParserSupport(Optional.ofNullable(dir), reader).configuration(); } Configuration(
            Collection<ImportStatement> imports,
            Collection<MonitorStatement> monitors,
            Collection<RuleStatement> rules); synchronized T create(MetricRegistryConstructor<T> constructor, Supplier<DateTime> now, EndpointRegistration api); T create(MetricRegistryConstructor<T> constructor, EndpointRegistration api); Collection<ImportStatement> getImports(); Collection<MonitorStatement> getMonitors(); List<RuleStatement> getRules(); boolean needsResolve(); boolean isResolved(); Configuration resolve(); static Configuration readFromFile(File dir, Reader reader); static Configuration readFromFile(File file); StringBuffer configString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final Map<String, Class<? extends CollectorBuilder>> COLLECTORS; static Configuration DEFAULT; }