public interface Aggregatable
An object implements this interface in order to support aggregation in
the weblogic naming service. An aggregatable binding can have multiple
objects bound to it. The object implementing Aggregatable is responsible
for maintaining this list. The object implementing Aggregatable must
implement the equals and the hashCode method.
Called to add an element to this aggregate. This method is
called if WLContext.bind(name, obj) is called when 'name'
refers to a binding to this aggregate and 'obj' is an instance
This method is also called with 'other' set to null when this
aggregate is being bound to a name that has no previous binding.
This provides a newly bound aggregate a way to initialize itself.
Called to replace an element in this aggregate. This method
is called when WLContext.rebind(name, obj) is called when
'name' refers to a binding to this aggregate and 'other' is
an instance of Aggregatable.
This method can either replace a current member of the aggregate
which is replaceble by 'other' or add 'other' to the aggregate.
Called to remove an element from this aggregate. If 'other'
is non-null, and there exists an element e such that e.equals('other'),
e should be removed. If there 'other' is not found in the list,
this method whould return silently (to ensure idempotence).
If no elements are left in the aggregate after this call,
true should be returned to indicate that the aggregate is
empty and should be unbound.