|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.SoloMapComponentReplacePolicy
public class SoloMapComponentReplacePolicy
A SoloMapComponentPolicy that senses duplicate SoloMapComponents compared to the new object, removing the previous object before advising addition.
Constructor Summary | |
---|---|
SoloMapComponentReplacePolicy()
|
Method Summary | |
---|---|
boolean |
canAdd(java.beans.beancontext.BeanContextSupport bc,
java.lang.Object obj)
Ask whether an object can be added to the to the context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoloMapComponentReplacePolicy()
Method Detail |
---|
public boolean canAdd(java.beans.beancontext.BeanContextSupport bc, java.lang.Object obj) throws MultipleSoloMapComponentException
SoloMapComponentPolicy
canAdd
in interface SoloMapComponentPolicy
bc
- the context to add toobj
- the object to add
MultipleSoloMapComponentException
- describing the
conflict if there is one and the object can't be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |