|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.Document.ListenersFacet
public class Document.ListenersFacet
The facet that gives access to a document's listeners.
Constructor Summary | |
---|---|
Document.ListenersFacet()
|
Method Summary | |
---|---|
void |
add(Set<Trigger> triggers,
Document.Listener listener)
Add a listener for this document. |
void |
add(Trigger trigger,
Document.Listener listener)
Add a listener for this document. |
void |
remove(Document.Listener listener)
Remove a listener previously added through this facet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document.ListenersFacet()
Method Detail |
---|
public void add(Trigger trigger, Document.Listener listener)
add(EnumSet.of(trigger), listener)
.
trigger
- the kind of event the listener should be notified oflistener
- the listener to notify of eventsadd(Set, Document.Listener)
public void add(Set<Trigger> triggers, Document.Listener listener)
triggers
- the kinds of events the listener should be notified of; the set must not be emptylistener
- the listener to notify of eventspublic void remove(Document.Listener listener)
add
methods. However, it will not remove the listener from combinations
added through other facets.
listener
- the listener to remove
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |