remove direct reference to WikiEngine on WikiEngineEvent, in order to break package cycle between o.a.wiki and o.a.w.event. To obtain the WikiEngine reference from the event just use getSrc()
specific language governing permissions and limitations
under the License.
*/
-
package org.apache.wiki.event;
-import org.apache.wiki.WikiEngine;
-
/**
* WikiEngineEvent indicates a change in the state of the WikiEngine.
*
@@ -46,8 +43,6 @@ public class WikiEngineEvent extends WikiEvent {
*/
public static final int STOPPED = 2;
- private WikiEngine m_engine;
-
/**
* Constructs an instance of this event.
*
@@ -57,7 +52,6 @@ public class WikiEngineEvent extends WikiEvent {
*/
public WikiEngineEvent( final Object eventSource, final int type ) {
super( eventSource, type );
- m_engine = ( WikiEngine )eventSource;
}
/**
@@ -73,15 +67,6 @@ public class WikiEngineEvent extends WikiEvent {
}
}
- /**
- * Returns the WikiEngine that spawned this event.
- *
- * @return the WikiEngine that spawned this event.
- */
- public WikiEngine getEngine() {
- return m_engine;
- }
-
/**
* Returns <code>true</code> if the int value is a WikiPageEvent type.
*
