Class CompanyCreateEventSpoutImpl

java.lang.Object
overit.geocall.event.producer.JsonSpout<CompanyCreateEvent,CompanyCreate>
overit.geocall.basic.bl.company.spout.CompanyCreateEventSpoutImpl
All Implemented Interfaces:
Spout<CompanyCreateEvent,CompanyCreate,String>

@Event(CompanyCreateEvent.class) @Component public class CompanyCreateEventSpoutImpl extends JsonSpout<CompanyCreateEvent,CompanyCreate>
Spout for the event CompanyCreateEvent to serialize a BOCompany into CompanyCreate.
GCApi:
spout
  • Constructor Details

    • CompanyCreateEventSpoutImpl

      public CompanyCreateEventSpoutImpl(M2Mapper m2Mapper)
  • Method Details

    • getPayload

      public CompanyCreate getPayload(PoolKit pk, CompanyCreateEvent event)
      Description copied from interface: Spout
      Extracts the payload from the given event using the provided PoolKit.
      Parameters:
      pk - the PoolKit instance used for database operations
      event - the event from which to extract the payload
      Returns:
      the extracted payload of type P