001    /*
002     * (c) 2009, 2010 ThoughtWorks Ltd
003     * All rights reserved.
004     *
005     * The software in this package is published under the terms of the BSD
006     * style license a copy of which has been included with this distribution in
007     * the LICENSE.txt file.
008     * 
009     * Created on 03-Oct-2009
010     */
011    package com.thoughtworks.proxy.toys.pool;
012    
013    /**
014     * The mode of serialization for pools.
015     * 
016     * @author Paul Hammant
017     * @since 1.0
018     */
019    public enum SerializationMode {
020    
021        /**
022         * <code>FORCE</code> is the value for serialization of the pool with or without serializable
023         * objects. If the objects cannot be serialized, the pool is empty after serialization and must be populated again.
024         * @since 1.0
025         */
026        FORCE,
027    
028        /**
029         * <code>STANDARD</code> is the value for the standard serialization of the pool with its objects.
030         * If the objects cannot be serialized, a {@link java.io.NotSerializableException} is thrown.
031         * @since 1.0
032         */
033        STANDARD,
034    
035        /**
036         * <code>NONE</code> is the value for serialization of the pool without the objects. The pool is
037         * empty after serialization and must be populated again.
038         * @since 1.0
039         */
040        NONE
041    
042    }