org::openide::windows::TopComponent::Replacer Class Reference

Inheritance diagram for org::openide::windows::TopComponent::Replacer:
Inheritance graph
[legend]
Collaboration diagram for org::openide::windows::TopComponent::Replacer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Replacer (TopComponent tc)

Package Attributes

transient TopComponent tc

Static Package Attributes

static final long serialVersionUID = -8897067133215740572L

Private Member Functions

void writeObject (ObjectOutputStream oos) throws IOException, ClassNotFoundException
void readObject (ObjectInputStream ois) throws IOException, ClassNotFoundException
Object readResolve () throws ObjectStreamException

Static Private Member Functions

static Method findReadResolveMethod (Class clazz)

Detailed Description

Instance of this class is serialized instead of TopComponent itself. Emulates behaviour of serialization of externalizable objects to keep TopComponent serialization compatible with previous versions.


Constructor & Destructor Documentation

org::openide::windows::TopComponent::Replacer::Replacer ( TopComponent  tc  )  [inline]

Member Function Documentation

static Method org::openide::windows::TopComponent::Replacer::findReadResolveMethod ( Class  clazz  )  [inline, static, private]

Tries to find readResolve method in given class. Finds both public and non-public occurences of the method and searches also in superclasses

Referenced by readObject().

void org::openide::windows::TopComponent::Replacer::readObject ( ObjectInputStream  ois  )  throws IOException, ClassNotFoundException [inline, private]
Object org::openide::windows::TopComponent::Replacer::readResolve (  )  throws ObjectStreamException [inline, private]

Resolve to original top component instance

References tc.

void org::openide::windows::TopComponent::Replacer::writeObject ( ObjectOutputStream  oos  )  throws IOException, ClassNotFoundException [inline, private]

Member Data Documentation

final long org::openide::windows::TopComponent::Replacer::serialVersionUID = -8897067133215740572L [static, package]

SUID

Asociation with top component which is to be serialized using this replacer

Referenced by readObject(), readResolve(), and writeObject().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2