UserBeans

@Factory
class UserBeans

Micronaut factory that wires application use cases to their concrete infrastructure dependencies.

Each method is annotated with @Singleton so the returned use case instance will be managed by the Micronaut context.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Singleton
fun deleteUser(userRepository: UserRepository): DeleteUser
Link copied to clipboard
@Singleton
fun getUser(repo: UserRepository): GetUser
Link copied to clipboard
@Singleton
fun getUserServices(getUser: GetUser, registerUser: RegisterUser, loginUser: LoginUser, updateUserPassword: UpdateUserPassword, updateUserInfo: UpdateUserInfo, deleteUser: DeleteUser, verifyUserEmail: VerifyUserEmail): UserServices
Link copied to clipboard
@Singleton
fun loginUser(userRepository: UserRepository, userCredentialsRepository: UserCredentialsRepository, passwordHasher: PasswordHasher): LoginUser
Link copied to clipboard
@Singleton
fun registerUser(userRepository: UserRepository, userCredentialsRepository: UserCredentialsRepository, hasher: PasswordHasher, mailer: Mailer): RegisterUser
Link copied to clipboard
@Singleton
fun updateUserInfo(userRepository: UserRepository): UpdateUserInfo
Link copied to clipboard
@Singleton
fun updateUserPassword(userRepository: UserRepository, userCredentialsRepository: UserCredentialsRepository, passwordHasher: PasswordHasher): UpdateUserPassword
Link copied to clipboard
@Singleton
fun verifyEmail(userRepository: UserRepository, hasher: PasswordHasher): VerifyUserEmail