|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.avaya.conferencing.api.acp.control.Reference<T>
T - The type of ConferencingObject that this reference
refers to.public abstract class Reference<T extends ConferencingObject>
Reference object for a ConferencingObject. Reference objects are designed to be used as handles to their ConferencingObject.
Accessing the internal data structures of a Reference is not permitted.
Reference objects are Serializable. Thus they can be serialized into a distributed cache or Http Session and deserialized in a
(possibly different) JVM, however when a Reference has been serialized and deserialized in this manner, it
will not be a valid Reference unless the JVM (or more specifically the ClassLoader) in which it
has been deserialized also has a valid Connection to the conferencing provider that the Reference refers to. Thus whenever a Reference is deserialized it is necessary to call isValid() or checkValid() before using it again.
| Constructor Summary | |
|---|---|
Reference()
|
|
| Method Summary | |
|---|---|
abstract void |
checkValid()
Checks to see if a reference that has been serialized and deserialized is valid. |
Reference<T> |
clone()
|
abstract Connection |
getConnection()
Returns the connection used by this reference, or null if the reference is no longer valid. |
abstract java.lang.Class<T> |
getReferencedClass()
Returns the type of ConferencingObject that this reference refers to. |
T |
getReferencedObject()
Returns the object referenced used by this reference. |
abstract boolean |
isValid()
Returns true if the reference is valid. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reference()
| Method Detail |
|---|
public Reference<T> clone()
clone in class java.lang.Object
public abstract void checkValid()
throws InvalidReferenceException
InvalidReferenceException - If the reference is no longer valid.isValid()public abstract Connection getConnection()
null if the reference is no longer valid.
checkValid(),
isValid()public abstract java.lang.Class<T> getReferencedClass()
public abstract boolean isValid()
true if the reference is valid. A reference can become invalid if it is serialized and
subsequently deserialized inside a JVM (or more correctly a ClassLoader) which does not have (or no
longer has) a Connection to the Conferencing Provider that this Reference refers to.
true if the reference is valid.
public T getReferencedObject()
throws InvalidReferenceException
InvalidReferenceException - If the reference is no longer valid.isValid()
|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||