Module it.rebirthproject.ufoeb
Class InterfaceEventInheritancePolicy
java.lang.Object
it.rebirthproject.ufoeb.eventinheritancepolicy.policies.InterfaceEventInheritancePolicy
- All Implemented Interfaces:
- InheritancePolicy
This implementation of the 
InheritancePolicy interface searches for
 all interfaces given the event class. With this policy the resulting
 eventSuperClassesAndInterfacesCache set will contain the given class and all
 its implemented interfaces (recursively).- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.serializeEventStructureForInheritanceInterface(Class<?> eventClass, Set<Class<?>> eventClassesAndInterfaces, EventsRegistrationsMap eventsRegistrations) This method will find all interfaces implemented given the event class.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.rebirthproject.ufoeb.eventinheritancepolicy.base.InheritancePolicyaddClassOrInterfaceToSerializationIfNecessary, serializeInterfaces
- 
Constructor Details- 
InterfaceEventInheritancePolicypublic InterfaceEventInheritancePolicy()
 
- 
- 
Method Details- 
getAllEventInheritanceObjectspublic 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 interface- InheritancePolicy
- 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.
 
- 
serializeEventStructureForInheritanceInterfaceprivate Set<Class<?>> serializeEventStructureForInheritanceInterface(Class<?> eventClass, Set<Class<?>> eventClassesAndInterfaces, EventsRegistrationsMap eventsRegistrations) This method will find all interfaces implemented given the event class. The resulting set will contain the event class itself and all its implemented interfaces (recursively).- Parameters:
- eventClass- The class to serialize (we want to find all interfaces).
- eventClassesAndInterfaces- The set to populate.
- eventsRegistrations- The event registration map.
- Returns:
- The complete set of classes and interfaces.
 
 
-