Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.share.util
Interface Bindable


public interface Bindable

The Bindable interface allows developers to keep track of when properties are added to or removed from a collection. This is especially useful when storing expensive objects that must be cleaned up (e.g., database connections).

Classes that support Bindable include BindableNamespaceMap, RenderingContext, and BajaContext.

See Also:
BindableNamespaceMap, RenderingContext.setProperty(java.lang.String, java.lang.Object, java.lang.Object), BajaContext.setProperty(java.lang.String, java.lang.Object, java.lang.Object)

Method Summary
 void bindValue()
          Callback for cleaning up the object.
 java.lang.Object getValue()
          Returns the value that is being stored.
 void unbindValue()
          Callback for cleaning up the object.
 

Method Detail

getValue

public java.lang.Object getValue()
Returns the value that is being stored. When a Bindable is stored in a collection class that supports it, then get() calls on that collection will proxy through this getValue() instead of returning the Bindable. This allows the code that stores the properties to hide whether it needs to clean up the value from the code that retrieves the value. If you implement Bindable directly on the "real" object being stored, you'll want to return this.
Returns:
the underlying stored Object

bindValue

public void bindValue()
Callback for cleaning up the object.

unbindValue

public void unbindValue()
Callback for cleaning up the object. Once this method returns, the object will no longer be in the collection.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.