else
throw e;
}
- processNewSession(session);
+ processNewSession(session, workspaceName);
return session;
}
}
/** Called after a session has been created, does nothing by default. */
- protected void processNewSession(Session session) {
+ protected void processNewSession(Session session, String workspaceName) {
}
/** Wraps access to the repository, making sure it is available. */
}
/**
- * Logs in to the default workspace, creates the required workspace, logs
- * out, logs in to the required workspace.
+ * Logs in to the default workspace, creates the required workspace, logs out,
+ * logs in to the required workspace.
*/
protected Session createWorkspaceAndLogsIn(Credentials credentials, String workspaceName)
throws RepositoryException {