
org.simpleframework.xml.strategy.WriteState Maven / Gradle / Ivy
/*
* WriteState.java April 2007
*
* Copyright (C) 2007, Niall Gallagher
*
* 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.simpleframework.xml.strategy;
import org.simpleframework.xml.util.WeakCache;
/**
* The WriteState
object is used to store all graphs that
* are currently been written with a given cycle strategy. The goal of
* this object is to act as a temporary store for graphs such that
* when the persistence session has completed the write graph will be
* garbage collected. This ensures that there are no lingering object
* reference that could cause a memory leak. If a graph for the given
* session key does not exist then a new one is created.
*
* @author Niall Gallagher
*
* @see org.simpleframework.xml.strategy.WriteGraph
*/
class WriteState extends WeakCache
© 2015 - 2025 Weber Informatics LLC | Privacy Policy