Examples of provide()


Examples of com.atlassian.json.schema.JsonSchemaGeneratorProvider.provide()

            {
                String ifaceJson = Files.toString(interfacesFile, Charsets.UTF_8);
                interfaceList = gson.fromJson(ifaceJson,InterfaceList.class);
            }

            JsonSchemaGenerator generator = provider.provide(getEnumCase(enumCase),interfaceList,schemaDocs,ignoreFilter);
            JsonSchema schema = generator.generateSchema(getRootClass());
           
            File rawFile = new File(rawOutput);
            File prettyFile = new File(prettyOutput);
           
View Full Code Here

Examples of com.google.appengine.tck.multisuite.scan.ScanMultiProvider.provide()

        File root = new File(arqXml.toURI()).getParentFile();

        MultiContext mc = new MultiContext(war, root, cl);

        MultiProvider provider = new ScanMultiProvider(overrides);
        provider.provide(mc);

        return war;
    }
}
View Full Code Here

Examples of com.urswolfer.intellij.plugin.gerrit.ui.changesbrowser.ChangesWithCommitMessageProvider.provide()

                    final List<Change> totalDiff;
                    CommitDiffBuilder.ChangesProvider changesProvider = new ChangesWithCommitMessageProvider(
                            gerritGitUtil, project, selectedChange);
                    if (gitCommits.size() == 1) {
                        final GitCommit gitCommit = Iterables.getLast(gitCommits);
                        totalDiff = changesProvider.provide(gitCommit);
                    } else {
                        GitCommit base = gitCommits.get(0);
                        GitCommit current = gitCommits.get(1);
                        totalDiff = new CommitDiffBuilder(base, current)
                                .withChangesProvider(changesProvider).getDiff();
View Full Code Here

Examples of juzu.io.Stream.provide()

  @Override
  protected void doRender(TemplateRenderContext renderContext) throws TemplateExecutionException, IOException {
    StringWriter buffer = new StringWriter();
    mustache.execute(buffer, new Object[]{new ContextMap(renderContext)});
    Stream stream = renderContext.getPrinter();
    stream.provide(Chunk.create(buffer.getBuffer()));
  }
}
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        ObjectProvider provider = alias.getObjectProvider();

        // Run through a couple of times to ensure that values are cached.
        for (int i = 0; i < 2; i++)
        {
            Runnable actual = provider.provide(Runnable.class, annotationProvider, locator);

            assertSame(actual, r);
        }

        verify();
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        Alias alias = new AliasImpl(manager, mode, overridesManager);

        ObjectProvider provider = alias.getObjectProvider();

        Runnable actual = provider.provide(Runnable.class, annotationProvider, locator);

        assertSame(actual, override);

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        // Do not assume that infra and provider are the same;
        // that's an implementation choice.

        ObjectProvider provider = alias.getObjectProvider();

        assertNull(provider.provide(Runnable.class, annotationProvider, locator));

        verify();

    }
}
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        ObjectProvider masterProvider = getService(
                IOCConstants.MASTER_OBJECT_PROVIDER_SERVICE_ID,
                ObjectProvider.class);

        return masterProvider.provide(reference, objectType, locator);
    }

    public <T> T getObject(String reference, Class<T> objectType)
    {
        _lock.check();
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        if (provider == null)
            throw new RuntimeException(ServiceMessages.unknownObjectProvider(prefix, expanded));

        String expression = expanded.substring(colonx + 1);

        return provider.provide(expression, objectType, locator);
    }

}
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectProvider.provide()

        replay();

        ObjectProvider provider = new AssetObjectProvider(source, typeCoercer, symbolSource);

        assertNull(provider.provide(Asset.class, annotationProvider, locator));

        verify();
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.