01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: *****************************************************************************/package org.picocontainer.references;
09:
10: import org.picocontainer.ObjectReference;
11:
12: import java.io.Serializable;
13: import java.io.ObjectOutputStream;
14: import java.io.ObjectInputStream;
15:
16: /** @author Paul Hammant */
17: public class ThreadLocalReference<T> extends ThreadLocal<T> implements
18: ObjectReference<T>, Serializable {
19:
20: private static final long serialVersionUID = 1L;
21:
22: private void writeObject(final ObjectOutputStream out) {
23: if (out != null)
24: ; // eliminate warning because of unused parameter
25: }
26:
27: private void readObject(final ObjectInputStream in) {
28: if (in != null)
29: ; // eliminate warning because of unused parameter
30: }
31:
32: }
|