Package org.apache.hivemind

Examples of org.apache.hivemind.ErrorHandler


        verifyControls();
    }

    public void testIncorrectFilterType()
    {
        ErrorHandler eh = getErrorHandler();
        Log log = getLog();

        eh.error(
            log,
            "-String- is not an instance of interface "
                + "org.apache.hivemind.lib.pipeline.StandardFilter suitable for "
                + "use as part of the pipeline for service foo.bar.",
            null,
View Full Code Here


        moduleControl.setReturnValue("foo.bar");

        module.getClassResolver();
        moduleControl.setReturnValue(new DefaultClassResolver());

        ErrorHandler eh = getErrorHandler();
        Log log = getLog();

        replayControls();

        PipelineAssembler pa =
View Full Code Here

    private void executeNonClassContribution(String name, Class objectClass, String message)
    {
        List l = Collections.singletonList(build(name, objectClass));

        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(null, message, null, null);

        replayControls();

        BeanFactoryImpl f = new BeanFactoryImpl(null, eh, Object.class, l, true);
View Full Code Here

    public void testIncorrectType()
    {
        List l = Collections.singletonList(build("array-list", ArrayList.class));

        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(
            null,
            "Contribution 'array-list' (class java.util.ArrayList) is not assignable to interface java.util.Map and has been ignored.",
            null,
            null);
View Full Code Here

            PropertyUtils.write(target, _propertyName, finalValue);

        }
        catch (Exception ex)
        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            eh.error(
                LOG,
                RulesMessages.readAttributeFailure(_attributeName, element, processor, ex),
                element.getLocation(),
                ex);
        }
View Full Code Here

    {
        List l = new ArrayList();
        l.add(build("list", ArrayList.class));
        l.add(build("list", LinkedList.class));

        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(
            null,
            "Contribution 'list' duplicates a previous contribution (at unknown location) and has been ignored.",
            null,
            null);
View Full Code Here

            PropertyUtils.write(target, _propertyName, finalValue);
        }
        catch (Exception ex)
        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            String message = RulesMessages.unableToSetProperty(_propertyName, target, ex);

            eh.error(LOG, message, element.getLocation(), ex);
        }

    }
View Full Code Here

            PropertyUtils.write(target, _propertyName, finalValue);
        }
        catch (Exception ex)
        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            eh.error(
                LOG,
                RulesMessages.readContentFailure(processor, element, ex),
                element.getLocation(),
                ex);
        }
View Full Code Here

     *
     * @since 4.0
     */
    protected Registry constructRegistry(ServletConfig config)
    {
        ErrorHandler errorHandler = constructErrorHandler(config);

        RegistryBuilder builder = new RegistryBuilder(errorHandler);

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver));

View Full Code Here

     *
     * @since 4.0
     */
    protected Registry constructRegistry(ServletConfig config)
    {
        ErrorHandler errorHandler = constructErrorHandler(config);

        RegistryBuilder builder = new RegistryBuilder(errorHandler);

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver));

View Full Code Here

TOP

Related Classes of org.apache.hivemind.ErrorHandler

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.