Hi,

I have a class which extends AbstractValidator and is contributed in
my AppModule

    public static void
contributeFieldValidatorSource(MappedConfiguration<String, Validator>
configuration, ComponentClassResolver componentClassResolver) {
        configuration.add("forbiddenusername", new
ForbiddenUsername(componentClassResolver));
    }

Searching through mailing list I found that logger can not be injected
into contribute methods, only services. So what is the way to go?

Like this?

Logger logger = LoggerFactory.getLogger(ForbiddenUsername.class);

Or did I miss something? I am using 5.0.18.

Regards,
Borut

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to