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 void
postAttributeAdded(AttributeEvent e)
Called after an attribute has been added.void
postAttributeChanged(AttributeEvent e)
Called after an attribute has been changed.void
postAttributeRemoved(AttributeEvent e)
Called after an attribute has been removed.void
preAttributeAdded(AttributeEvent e)
Called just before an attribute is added.void
preAttributeChanged(AttributeEvent e)
Called before a change of an attribute takes place.void
preAttributeRemoved(AttributeEvent e)
Called just before an attribute is removed.void
transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)
Called when a transaction has stopped.void
transactionStarted(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:TransactionListener
Called when a transaction has stopped.
The classTransactionHashMap
merges duplicateAttributeEvent
s. In case the Attribute path for the sameAttributable
is not equal, detailed information about Attribute path is lost. Instead a genericAttributeEvent
containing just theAttributable
is 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:
transactionFinished
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from interface:TransactionListener
Called when a transaction has started.- Specified by:
transactionStarted
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postAttributeAdded
Description copied from interface:AttributeListener
Called after an attribute has been added.- Specified by:
postAttributeAdded
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postAttributeChanged
Description copied from interface:AttributeListener
Called after an attribute has been changed.- Specified by:
postAttributeChanged
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postAttributeRemoved
Description copied from interface:AttributeListener
Called after an attribute has been removed.- Specified by:
postAttributeRemoved
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeAdded
Description copied from interface:AttributeListener
Called just before an attribute is added.- Specified by:
preAttributeAdded
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeChanged
Description copied from interface:AttributeListener
Called before a change of an attribute takes place.- Specified by:
preAttributeChanged
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeRemoved
Description copied from interface:AttributeListener
Called just before an attribute is removed.- Specified by:
preAttributeRemoved
in interfaceAttributeListener
- Parameters:
e
- the AttributeEvent detailing the changes.
-