org.qi4j.library.eventsourcing.application.factory
Class ApplicationEventMethodFilter
java.lang.Object
org.qi4j.library.eventsourcing.application.factory.ApplicationEventMethodFilter
- All Implemented Interfaces:
- AppliesToFilter
public class ApplicationEventMethodFilter
- extends Object
- implements AppliesToFilter
Filter for Event methods. Event methods
have ApplicationEvent as their first method parameter.
Method Summary |
boolean |
appliesTo(Method method,
Class<?> mixin,
Class<?> compositeType,
Class<?> fragmentClass)
Check if the Fragment should be applied or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationEventMethodFilter
public ApplicationEventMethodFilter()
appliesTo
public boolean appliesTo(Method method,
Class<?> mixin,
Class<?> compositeType,
Class<?> fragmentClass)
- Description copied from interface:
AppliesToFilter
- Check if the Fragment should be applied or not. Will be call when applied to Mixins, Concerns, SideEffects.
- Specified by:
appliesTo
in interface AppliesToFilter
- Parameters:
method
- method that is invokedmixin
- mixin implementation for the methodcompositeType
- composite typefragmentClass
- fragment that is being applies
- Returns:
- true if the filter passes, otherwise false