Package org.apache.hivemind

Examples of org.apache.hivemind.ErrorHandler.error()


        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


        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

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

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

    }

    public void setPropertyName(String string)
View Full Code Here

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

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

        {
            // Have to decide if we need to display the location of the rule
            // or the element.

            ErrorHandler errorHandler = processor.getContributingModule().getErrorHandler();
            errorHandler.error(
                LOG,
                RulesMessages.unableToSetElementProperty(
                    propertyName,
                    target,
                    processor,
View Full Code Here

    {
        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

    {
        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

        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        Log log = getLog();

        eh.error(
            log,
            "Terminator ss2 for pipeline service foo.bar conflicts with "
                + "previous terminator (ss1, at unknown location) and has been ignored.",
            null,
            null);
View Full Code Here

        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

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

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

    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

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.