Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.RegistryBuilder.constructRegistry()


        ServletContext context = config.getServletContext();

        addModuleIfExists(builder, context, "/WEB-INF/" + name + "/hivemodule.xml");
        addModuleIfExists(builder, context, "/WEB-INF/hivemodule.xml");

        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * Invoked by {@link #constructRegistry(ServletConfig)} to create and return an
     * {@link ErrorHandler} instance to be used when constructing the Registry (and then to handle
View Full Code Here


        ServletContext context = config.getServletContext();

        addModuleIfExists(builder, context, "/WEB-INF/" + name + "/hivemodule.xml");
        addModuleIfExists(builder, context, "/WEB-INF/hivemodule.xml");

        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * Invoked by {@link #constructRegistry(ServletConfig)} to create and return an
     * {@link ErrorHandler} instance to be used when constructing the Registry (and then to handle
View Full Code Here

        WebContext context = new PortletWebContext(config.getPortletContext());

        addModuleIfExists(builder, resolver, context, "/WEB-INF/" + name + "/hivemodule.xml");
        addModuleIfExists(builder, resolver, context, "/WEB-INF/hivemodule.xml");

        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * Looks for a file in the context; if it exists, it is expected to be a HiveMind module
     * descriptor, and is added to the builder.
View Full Code Here

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver));
        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver,
                moduleResource));

        Registry r = builder.constructRegistry(Locale.FRENCH);

        List l = r.getConfiguration("hivemind.test.config.ResourceTranslator");

        interceptLogging();
View Full Code Here

        RegistryBuilder b = new RegistryBuilder();

        b.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(resolver));

        Registry r = b.constructRegistry(Locale.getDefault());

        List l = r.getConfiguration("hivemind.test.config.Symbols");
        assertEquals(1, l.size());

        Datum d = (Datum) l.get(0);
View Full Code Here

        RegistryBuilder builder = new RegistryBuilder();

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(resolver));
        builder.addModuleDescriptorProvider(customProvider);

        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * Builds a registry from exactly the provided resource; this registry will not include the
     * <code>hivemind</code> module.
View Full Code Here

     */
    protected Registry buildMinimalRegistry(Resource l) throws Exception
    {
        RegistryBuilder builder = new RegistryBuilder();

        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * Creates a <em>managed</em> control via
     * {@link MockControl#createStrictControl(java.lang.Class)}. The created control is remembered,
View Full Code Here

                resolver, skipPattern, skipFilesystem, false);

        builder.addModuleDescriptorProvider(provider);
        builder.addModuleDescriptorProvider(customProvider);

        return builder.constructRegistry(Locale.getDefault());
    }

    @SuppressWarnings("unused")
    protected Registry buildMinimalRegistry(Resource l) throws Exception {
        RegistryBuilder builder = new RegistryBuilder(/*new QuietErrorHandler()*/);
 
View Full Code Here

    }

    @SuppressWarnings("unused")
    protected Registry buildMinimalRegistry(Resource l) throws Exception {
        RegistryBuilder builder = new RegistryBuilder(/*new QuietErrorHandler()*/);
        return builder.constructRegistry(Locale.getDefault());
    }

    /**
     * keeps quiet about error messages.
     *
 
View Full Code Here

        // Process the examples.sdl file, which (given its non-standard name)
        // is not visible.

        builder.processModule(resolver, new FileResource(path));

        return builder.constructRegistry(Locale.getDefault());
    }

}
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.