Interface EventFactoryPlugin
- All Known Implementing Classes:
AccessorModifierEventFactoryPlugin
public interface EventFactoryPlugin
Represents a class which modifies the behavior of an event generator.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncontributeProperty(TypeElement eventClass, ClassContext classWriter, Property property) Called to allow a plugin to override the generation of the field and method(s) for aProperty.
-
Method Details
-
contributeProperty
EventFactoryPlugin.Result contributeProperty(TypeElement eventClass, ClassContext classWriter, Property property) Called to allow a plugin to override the generation of the field and method(s) for aProperty.If an event factory plugin does not have any special behavior for the provided
Property, it should returnfalse, which passes on the property to other plugins for processing.Returning
truestops the processing of the providedProperty.- Parameters:
eventClass- TheClassof the event an implementation is being generated forclassWriter- TheClassContextholding information about the implementation classproperty- ThePropertybeing processed- Returns:
- whether the provided
Propertywas processed.
-