Module it.rebirthproject.ufoeb
Class NoEventInheritancePolicy
java.lang.Object
it.rebirthproject.ufoeb.eventinheritancepolicy.policies.NoEventInheritancePolicy
- All Implemented Interfaces:
InheritancePolicy
The simpler implementation of the
InheritancePolicy interface. With
this policy we dont' want to use event inheritance. So only the given class is added to
the eventSuperClassesAndInterfacesCache set.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllEventInheritanceObjects(Object eventObjectToPost, EventsRegistrationsMap eventsRegistrations, Map<Class<?>, Set<Class<?>>> eventSuperClassesAndInterfacesCache) The interface method that returns a set of classes (the implementation usesLinkedHashSetto preserve order of insertion), based on the chosen inheritance policy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.rebirthproject.ufoeb.eventinheritancepolicy.base.InheritancePolicy
addClassOrInterfaceToSerializationIfNecessary, serializeInterfaces
-
Constructor Details
-
NoEventInheritancePolicy
public NoEventInheritancePolicy()
-
-
Method Details
-
getAllEventInheritanceObjects
public Set<Class<?>> getAllEventInheritanceObjects(Object eventObjectToPost, EventsRegistrationsMap eventsRegistrations, Map<Class<?>, Set<Class<?>>> eventSuperClassesAndInterfacesCache) Description copied from interface:InheritancePolicyThe interface method that returns a set of classes (the implementation usesLinkedHashSetto preserve order of insertion), based on the chosen inheritance policy.- Specified by:
getAllEventInheritanceObjectsin interfaceInheritancePolicy- Parameters:
eventObjectToPost- The event object to post.eventsRegistrations- The complete map of events'Registrations.eventSuperClassesAndInterfacesCache- The cache used to save event class/superclasses/interfaces serialization.- Returns:
- a set of classes based on the chosen inheritance policy.
-