Package org.slf4j

Examples of org.slf4j.Logger.debug()


                Logger logger = component.getEventLogger();

                ComponentEvent event = new ComponentEventImpl(currentEventType, componentId, currentContext, wrapped,
                        elementResources, logger);

                logger.debug(TapestryMarkers.EVENT_DISPATCH, "Dispatch event: {}", event);

                result |= component.dispatchEvent(event);

                if (event.isAborted())
                    return result;
View Full Code Here


    public static void debug( Session session, String message )
    {
        Logger log = getLogger( session );
        if( log.isDebugEnabled() )
        {
            log.debug( String.valueOf( session.getAttribute( PREFIX ) ) + message );
        }
    }

    public static void debug( Session session, String message, Throwable cause )
    {
View Full Code Here

    public static void debug( Session session, String message, Throwable cause )
    {
        Logger log = getLogger( session );
        if( log.isDebugEnabled() )
        {
            log.debug( String.valueOf( session.getAttribute( PREFIX ) ) + message, cause );
        }
    }

    public static void info( Session session, String message )
    {
View Full Code Here

        BeanInfo info = null;
        try {
            info = Introspector.getBeanInfo(clazz);
        } catch (Exception ex) {
            if (log.isDebugEnabled()) {
                log.debug("Cannot inspect class " + clazz, ex);
            }
        }
        if (info == null) {
            return;
        }
View Full Code Here

        train_getTracker(resources, tracker);

        // The point is, we're choosing the constructor with the largest number of parameters.

        logger.debug(contains("org.apache.tapestry5.ioc.internal.MultipleConstructorsAutobuildService(StringHolder)"));

        train_getServiceId(resources, "StringHolder");
        train_getLogger(resources, logger);
        train_getServiceInterface(resources, StringHolder.class);
        train_getService(resources, "ToUpperCaseStringHolder", StringHolder.class, new ToUpperCaseStringHolder());
View Full Code Here

        fixture.interceptorToReturn = mockFieService();
        ModuleBuilderSource source = newSource(fixture);

        trainForConstructor(resources, logger);

        logger.debug(EasyMock
                .contains("Invoking method org.apache.tapestry5.ioc.internal.ServiceDecoratorFixture.decoratorReturnsInterceptor(Class, Object)"));

        replay();

        // Check that the delegate gets passed in; check that the return value of the
View Full Code Here

        Logger logger = mockLogger();
        Object delegate = mockFieService();

        trainForConstructor(resources, logger);

        logger.debug(EasyMock.anyObject(String.class));

        replay();

        Method m = findMethod(fixture, "decorateReturnNull");
View Full Code Here

        Method m = findMethod(fixture, "decoratorUntyped");

        trainForConstructor(resources, logger);

        logger.debug(EasyMock.anyObject(String.class));

        replay();

        ServiceDecoratorImpl decorator = new ServiceDecoratorImpl(m, source, resources, getProxyFactory());
View Full Code Here

        Object delegate = mockFieService();
        fixture.exception = new RuntimeException("Ouch!");

        trainForConstructor(resources, logger);

        logger.debug(EasyMock.anyObject(String.class));

        replay();

        Method m = findMethod(fixture, "decoratorThrowsException");
View Full Code Here

        String description = String.format("Creating %s service %s",
                serviceInterface.isInterface() ? "proxy for" : "non-proxied instance of",
                serviceId);

        if (logger.isDebugEnabled())
            logger.debug(description);

        final Module module = this;

        Invokable operation = new Invokable()
        {
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.