01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.util;
17:
18: import java.io.Serializable;
19: import java.io.IOException;
20: import java.io.ObjectStreamException;
21:
22: /**
23: * This class exists primarily to document the serialization API.
24: *
25: * Don't subclass from this class, simply implement Serializable
26: * and copy/paste the method signatures you wish implement.
27: *
28: * All of the methods are optional in the Serialization API
29: */
30: public class SerializationCallbacks implements Serializable {
31:
32: /**
33: * ANY-ACCESS-MODIFIER static final long serialVersionUID = VALUE;
34: */
35: private static final long serialVersionUID = 42L;
36:
37: private void writeObject(java.io.ObjectOutputStream out)
38: throws IOException {
39: out.defaultWriteObject(); // optional
40: }
41:
42: private void readObject(java.io.ObjectInputStream in)
43: throws IOException, ClassNotFoundException {
44: in.defaultReadObject(); // optional
45: }
46:
47: /**
48: * ANY-ACCESS-MODIFIER Object writeReplace() throws ObjectStreamException
49: * @return
50: * @throws java.io.ObjectStreamException
51: */
52: protected Object writeReplace() throws ObjectStreamException {
53: return null;
54: }
55:
56: /**
57: * ANY-ACCESS-MODIFIER Object readResolve() throws ObjectStreamException;
58: * @return
59: * @throws java.io.ObjectStreamException
60: */
61: protected Object readResolve() throws ObjectStreamException {
62: return null;
63: }
64:
65: }
|