Class UserTypeCreateEventSpoutImpl

java.lang.Object
overit.geocall.event.producer.JsonSpout<UserTypeCreateEvent,NewUserType>
overit.geocall.basic.bl.usertype.spout.UserTypeCreateEventSpoutImpl
All Implemented Interfaces:
Spout<UserTypeCreateEvent,NewUserType,String>

@Event(UserTypeCreateEvent.class) @Component public class UserTypeCreateEventSpoutImpl extends JsonSpout<UserTypeCreateEvent,NewUserType>
Spout for the event UserTypeCreateEvent to serialize a BOUserType into NewUserType.
GCApi:
spout
  • Constructor Details

    • UserTypeCreateEventSpoutImpl

      public UserTypeCreateEventSpoutImpl(M2Mapper m2Mapper)
  • Method Details

    • getPayload

      public NewUserType getPayload(PoolKit pk, UserTypeCreateEvent 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