예제 #1
0
  // TODO: looks to be unused..
  public static DebuggableWithTitle[] debugSession() {
    final DebugList debugList = new DebugList("Apache Isis Session");
    debugList.add("Apache Isis session", getSession());
    debugList.add("Authentication session", getAuthenticationSession());

    debugList.add("Persistence Session", getPersistenceSession());
    debugList.add("Transaction Manager", getTransactionManager());

    debugList.add("Service injector", getPersistenceSession().getServicesInjector());
    debugList.add("Services", getPersistenceSession().getServices());
    return debugList.debug();
  }
예제 #2
0
  public static DebuggableWithTitle[] debugSystem() {
    final DebugList debugList = new DebugList("Apache Isis System");
    debugList.add("Context", getInstance());
    debugList.add("Apache Isis session factory", getSessionFactory());
    debugList.add("  Authentication manager", getSessionFactory().getAuthenticationManager());
    debugList.add("  Authorization manager", getSessionFactory().getAuthorizationManager());
    debugList.add(
        "  Persistence session factory", getSessionFactory().getPersistenceSessionFactory());

    debugList.add("Reflector", getSpecificationLoader());

    debugList.add("Deployment type", getDeploymentType().getDebug());
    debugList.add("Configuration", getConfiguration());

    debugList.add("Services", getServices());
    return debugList.debug();
  }