com.sun.jini.norm
Class AbstractProxy

java.lang.Object
  extended by com.sun.jini.norm.AbstractProxy
All Implemented Interfaces:
Serializable, ReferentUuid
Direct Known Subclasses:
AdminProxy, NormProxy, SetProxy

abstract class AbstractProxy
extends Object
implements ReferentUuid, Serializable

Defines an abstract class that supplies basic referent UUID and serialization behavior for Norm proxies.

Since:
2.0
Author:
Sun Microsystems, Inc.

Field Summary
private static long serialVersionUID
           
(package private)  NormServer server
          The server.
(package private)  Uuid uuid
          The unique identifier for this proxy.
 
Constructor Summary
AbstractProxy(NormServer server, Uuid uuid)
          Creates an instance of this class.
 
Method Summary
 boolean equals(Object object)
          Returns true if the object has the same UUID as this instance.
 Uuid getReferentUuid()
          Return the Uuid that has been assigned to the resource this proxy represents.
 int hashCode()
          Returns a hash code for this object.
private  void readObject(ObjectInputStream in)
          Require fields to be non-null.
private  void readObjectNoData()
          Require fields to be non-null.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

server

final NormServer server
The server.


uuid

final Uuid uuid
The unique identifier for this proxy.

Constructor Detail

AbstractProxy

AbstractProxy(NormServer server,
              Uuid uuid)
Creates an instance of this class.

Method Detail

readObjectNoData

private void readObjectNoData()
                       throws InvalidObjectException
Require fields to be non-null.

Throws:
InvalidObjectException

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Require fields to be non-null.

Throws:
IOException
ClassNotFoundException

equals

public boolean equals(Object object)
Returns true if the object has the same UUID as this instance.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code for this object.

Overrides:
hashCode in class Object

getReferentUuid

public Uuid getReferentUuid()
Description copied from interface: ReferentUuid
Return the Uuid that has been assigned to the resource this proxy represents.

Specified by:
getReferentUuid in interface ReferentUuid
Returns:
the Uuid associated with the resource this proxy represents. Will not return null.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.