Examples of DebugString


Examples of org.apache.isis.core.commons.debug.DebugString

    public void takeSnapshot() {
        if (!LOG.isDebugEnabled()) {
            return;
        }
        final DebugString debug = new DebugString();
        debug(debug);
        debug.indent();
        debug.appendln();

        debug(debug, getPersistenceSession());
        if (getCurrentTransaction() != null) {
            debug(debug, getCurrentTransaction().getUpdateNotifier());
            debug(debug, getCurrentTransaction().getMessageBroker());
        }
        debugSnapshot = debug.toString();

        LOG.debug(debugSnapshot);
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

    // debug, toString
    // //////////////////////////////////////////////////////////////////

    @Override
    public String debugData() {
        final DebugString debugString = new DebugString();
        getFacetedMethod().debugData(debugString);
        return debugString.toString();
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

    /**
     * @see #specification(ObjectAdapter, DebugBuilder)
     * @see #specification(ObjectSpecification, DebugBuilder)
     */
    public static String specification(final ObjectAdapter adapter) {
        final DebugBuilder debugBuilder = new DebugString();
        specification(adapter, debugBuilder);
        return debugBuilder.toString();
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

    /**
     * @see #adapter(ObjectAdapter, DebugBuilder)
     */
    public static String adapter(final ObjectAdapter adapter) {
        final DebugBuilder debugBuilder = new DebugString();
        adapter(adapter, debugBuilder);
        return debugBuilder.toString();
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

     * three levels deep.
     *
     * @see #graph(ObjectAdapter, AuthenticationSession, DebugBuilder)
     */
    public static String graph(final ObjectAdapter adapter, final AuthenticationSession authenticationSession) {
        debugBuilder = new DebugString();
        graph(adapter, authenticationSession, debugBuilder);
        return debugBuilder.toString();
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

    // debug, toString
    // /////////////////////////////////////////////////////////////

    @Override
    public String debugData() {
        final DebugString debugString = new DebugString();
        debugString.indent();
        debugString.indent();
        getFacetedMethod().debugData(debugString);
        return debugString.toString();
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

        // given
        iswf.persist(iswf.fixtures.smpl1);

        // when
        final DebugString debug = new DebugString();
        getStore().debugData(debug);
       
       
        // then
        assertThat(debug.toString(), IsisMatchers.containsStripNewLines("SMPL:3"));
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

   
    @Test
    public void testEmpty() throws Exception {
       
        // when
        final DebugString debug = new DebugString();
        getStore().debugData(debug);
       
        // then
        assertThat(debug.toString(), is("\nDomain Objects\n--------------\n\n"));
    }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

            page.setTitle("Debug");

            final DebugPane debugPane = context.getComponentFactory().createDebugPane();
            page.setDebug(debugPane);

            final DebugString debug = new DebugString();

            final AuthenticationSession authenticationSession = IsisContext.getAuthenticationSession();
            debug.appendTitle("Session");
            if (authenticationSession != null) {
                debug.appendln("user", authenticationSession.getUserName());
                debug.appendln("roles", authenticationSession.getRoles());
            } else {
                debug.appendln("none");
            }

            final UserProfile userProfile = IsisContext.getUserProfile();
            debug.appendTitle("User profile");
            if (userProfile != null) {
                UserProfilesDebugUtil.asDebuggableWithTitle(userProfile).debugData(debug);
            } else {
                debug.appendln("none");
            }

            debug.appendTitle("Actions");
            final Iterator e = actions.entrySet().iterator();
            debug.indent();
            while (e.hasNext()) {
                final Map.Entry element = (Map.Entry) e.next();
                debug.appendln(element.getKey() + " -> " + element.getValue());
            }
            debug.unindent();

            context.debug(debug);

            ImageLookup.debug(debug);

            debugPane.appendln("<pre>" + debug.toString() + "</pre>");
        }
View Full Code Here

Examples of org.apache.isis.core.commons.debug.DebugString

            Defaults.initialise(BASE_NAME, IsisContext.getConfiguration());
            Defaults.setPkIdLabel(Sql.identifier(Defaults.getPkIdLabel()));
            Defaults.setIdColumn(Sql.identifier(Defaults.getIdColumn()));
        }

        final DebugBuilder debug = new DebugString();
        connectionPool.debug(debug);
        LOG.info("Database: " + debug);

        objectMappingLookup.init();
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.