Package models

Examples of models.ModelFactoryModule


                bind(Long.class).annotatedWith(Names.named("Default Timeout"))
                        .toInstance(org.graylog2.restclient.lib.Configuration.apiTimeout("DEFAULT"));
                bind(ObjectMapper.class).toInstance(objectMapper);
            }
        });
        modules.add(new ModelFactoryModule());
        injector = Guice.createInjector(modules);

        // start the services that need starting
        final ApiClient api = injector.getInstance(ApiClient.class);
        api.start();
View Full Code Here


    protected ServerNodes serverNodes;
    protected Injector injector;

    public Injector setupGuice(final Collection<URI> initialNodes) {
        List<Module> modules = Lists.newArrayList();
        modules.add(new ModelFactoryModule());

        modules.add(new AbstractModule() {
            @Override
            protected void configure() {
                bind(URI[].class).annotatedWith(Names.named("Initial Nodes")).toInstance(initialNodes.toArray(new URI[initialNodes.size()]));
View Full Code Here

TOP

Related Classes of models.ModelFactoryModule

Copyright © 2018 www.massapicom. 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.