blob: cc112ad37841cae9d91e8555dd183bda6fee39a5 [file] [log] [blame]
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.caching.impl;
import java.io.Serializable;
import org.apache.commons.collections.MultiHashMap;
/**
* A light object for persisting the state of an EventRegistry implementation
* based on two MultiHashMaps.
*
* @author <a href="mailto:ghoward@apache.org">Geoff Howard</a>
* @version CVS $Id: EventRegistryDataWrapper.java,v 1.3 2004/03/05 13:01:56 bdelacretaz Exp $
*/
public class EventRegistryDataWrapper implements Serializable {
private MultiHashMap m_keyMMap;
private MultiHashMap m_eventMMap;
public EventRegistryDataWrapper() {
this.m_keyMMap = null;
this.m_eventMMap = null;
}
public void setupMaps(MultiHashMap keyMap, MultiHashMap eventMap) {
this.m_keyMMap = keyMap;
this.m_eventMMap = eventMap;
}
public MultiHashMap get_eventMap() {
return m_eventMMap;
}
public MultiHashMap get_keyMap() {
return m_keyMMap;
}
}