Accessing UserRepository or AuthRepository

To use AuthRepository or UserRepository you need only to declare fields properly and annotated them with @Inject. This fields must be part of a class managed by Tigase Kernel - class of a component or any class annotated with @Bean annotation. For that classes proper instances of repositories will be injected by dependency injection.

Example usage of AuthRepository and UserRepository. 

private AuthRepository authRepository;
private UserRepository userRepository;