You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2009/09/07 05:29:36 UTC
svn commit: r811983 -
/incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java
Author: ajaquith
Date: Mon Sep 7 03:29:36 2009
New Revision: 811983
URL: http://svn.apache.org/viewvc?rev=811983&view=rev
Log:
WikiEngine gains a new method restart() which does what you'd imagine. InstallActionBean relies on restart() to make "instant setup" possible.
Modified:
incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java
Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java?rev=811983&r1=811982&r2=811983&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/WikiEngine.java Mon Sep 7 03:29:36 2009
@@ -1552,6 +1552,16 @@
}
/**
+ * Restarts the WikiEngine.
+ */
+ public void restart() throws WikiException
+ {
+ shutdown();
+ m_properties = PropertyReader.loadWebAppProps( m_servletContext );
+ initialize( m_properties );
+ }
+
+ /**
* Protected method that signals that the WikiEngine will be
* shut down by the servlet container. It is called by
* {@link WikiServlet#destroy()}. When this method is called,