Class UserCreateEventSpoutImpl

java.lang.Object
overit.geocall.event.producer.JsonSpout<CreateUserEvent,NewUser>
overit.geocall.basic.bl.user.spout.UserCreateEventSpoutImpl
All Implemented Interfaces:
Spout<CreateUserEvent,NewUser,String>

@Event(CreateUserEvent.class) @Component public class UserCreateEventSpoutImpl extends JsonSpout<CreateUserEvent,NewUser>
Spout for the event CreateUserEvent to serialize a BOUser into NewUser.
GCApi:
spout
  • Constructor Details

    • UserCreateEventSpoutImpl

      public UserCreateEventSpoutImpl(M2Mapper m2Mapper)
  • Method Details

    • getPayload

      public NewUser getPayload(PoolKit pk, CreateUserEvent 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