Package org.graffiti.event
Class AttributeAdapter
java.lang.Object
org.graffiti.event.AttributeAdapter
- All Implemented Interfaces:
EventListener,AttributeListener,TransactionListener
- Direct Known Subclasses:
KineticLawHelper
public class AttributeAdapter extends Object implements AttributeListener
Adapter for the AttributeListener interface, providing default
empty implementation. Useful, given you don't need all interface methods.
- Since:
- 2.7.0
- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description AttributeAdapter() -
Method Summary
Modifier and Type Method Description voidpostAttributeAdded(AttributeEvent e)Called after an attribute has been added.voidpostAttributeChanged(AttributeEvent e)Called after an attribute has been changed.voidpostAttributeRemoved(AttributeEvent e)Called after an attribute has been removed.voidpreAttributeAdded(AttributeEvent e)Called just before an attribute is added.voidpreAttributeChanged(AttributeEvent e)Called before a change of an attribute takes place.voidpreAttributeRemoved(AttributeEvent e)Called just before an attribute is removed.voidtransactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Called when a transaction has stopped.voidtransactionStarted(TransactionEvent e)Called when a transaction has started.
-
Constructor Details
-
AttributeAdapter
public AttributeAdapter()
-
-
Method Details
-
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Description copied from interface:TransactionListenerCalled when a transaction has stopped.
The classTransactionHashMapmerges duplicateAttributeEvents. In case the Attribute path for the sameAttributableis not equal, detailed information about Attribute path is lost. Instead a genericAttributeEventcontaining just theAttributableis in the list of changed Objects (seeTransactionEvent).
In case no detailed information about an Attribute change is available, your code should completely re-process the affectedAttributable.- Specified by:
transactionFinishedin interfaceTransactionListener- Parameters:
e- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from interface:TransactionListenerCalled when a transaction has started.- Specified by:
transactionStartedin interfaceTransactionListener- Parameters:
e- the EdgeEvent detailing the changes.
-
postAttributeAdded
Description copied from interface:AttributeListenerCalled after an attribute has been added.- Specified by:
postAttributeAddedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-
postAttributeChanged
Description copied from interface:AttributeListenerCalled after an attribute has been changed.- Specified by:
postAttributeChangedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-
postAttributeRemoved
Description copied from interface:AttributeListenerCalled after an attribute has been removed.- Specified by:
postAttributeRemovedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeAdded
Description copied from interface:AttributeListenerCalled just before an attribute is added.- Specified by:
preAttributeAddedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeChanged
Description copied from interface:AttributeListenerCalled before a change of an attribute takes place.- Specified by:
preAttributeChangedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeRemoved
Description copied from interface:AttributeListenerCalled just before an attribute is removed.- Specified by:
preAttributeRemovedin interfaceAttributeListener- Parameters:
e- the AttributeEvent detailing the changes.
-